Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/lst.lib make(1): remove redundant parentheses a...



details:   https://anonhg.NetBSD.org/src/rev/6c86e572868c
branches:  trunk
changeset: 973513:6c86e572868c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Jul 03 08:37:56 2020 +0000

description:
make(1): remove redundant parentheses around return value

diffstat:

 usr.bin/make/lst.lib/lstAppend.c      |  11 +++++------
 usr.bin/make/lst.lib/lstAtEnd.c       |   8 ++++----
 usr.bin/make/lst.lib/lstAtFront.c     |   8 ++++----
 usr.bin/make/lst.lib/lstClose.c       |   7 +++----
 usr.bin/make/lst.lib/lstConcat.c      |  11 +++++------
 usr.bin/make/lst.lib/lstDatum.c       |   9 ++++-----
 usr.bin/make/lst.lib/lstDeQueue.c     |   9 ++++-----
 usr.bin/make/lst.lib/lstDupl.c        |   8 ++++----
 usr.bin/make/lst.lib/lstEnQueue.c     |  11 +++++------
 usr.bin/make/lst.lib/lstFind.c        |   9 ++++-----
 usr.bin/make/lst.lib/lstFindFrom.c    |   9 ++++-----
 usr.bin/make/lst.lib/lstFirst.c       |   9 ++++-----
 usr.bin/make/lst.lib/lstForEach.c     |   7 +++----
 usr.bin/make/lst.lib/lstForEachFrom.c |   7 +++----
 usr.bin/make/lst.lib/lstInit.c        |   8 ++++----
 usr.bin/make/lst.lib/lstInsert.c      |  11 +++++------
 usr.bin/make/lst.lib/lstIsAtEnd.c     |  11 +++++------
 usr.bin/make/lst.lib/lstIsEmpty.c     |   9 ++++-----
 usr.bin/make/lst.lib/lstLast.c        |   9 ++++-----
 usr.bin/make/lst.lib/lstNext.c        |   9 ++++-----
 usr.bin/make/lst.lib/lstOpen.c        |  11 +++++------
 usr.bin/make/lst.lib/lstPrev.c        |   9 ++++-----
 usr.bin/make/lst.lib/lstRemove.c      |  14 ++++++--------
 usr.bin/make/lst.lib/lstReplace.c     |  11 +++++------
 usr.bin/make/lst.lib/lstSucc.c        |   9 ++++-----
 25 files changed, 106 insertions(+), 128 deletions(-)

diffs (truncated from 906 to 300 lines):

diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstAppend.c
--- a/usr.bin/make/lst.lib/lstAppend.c  Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstAppend.c  Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstAppend.c,v 1.14 2009/01/23 21:26:30 dsl Exp $       */
+/*     $NetBSD: lstAppend.c,v 1.15 2020/07/03 08:37:56 rillig Exp $    */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstAppend.c,v 1.14 2009/01/23 21:26:30 dsl Exp $";
+static char rcsid[] = "$NetBSD: lstAppend.c,v 1.15 2020/07/03 08:37:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)lstAppend.c        8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: lstAppend.c,v 1.14 2009/01/23 21:26:30 dsl Exp $");
+__RCSID("$NetBSD: lstAppend.c,v 1.15 2020/07/03 08:37:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -85,7 +85,7 @@
     }
 
     if (!LstValid (l) || LstIsEmpty (l)  || ! LstNodeValid (ln, l)) {
-       return (FAILURE);
+       return FAILURE;
     }
     ok:
 
@@ -117,6 +117,5 @@
        }
     }
 
-    return (SUCCESS);
+    return SUCCESS;
 }
-
diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstAtEnd.c
--- a/usr.bin/make/lst.lib/lstAtEnd.c   Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstAtEnd.c   Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstAtEnd.c,v 1.13 2009/01/23 21:26:30 dsl Exp $        */
+/*     $NetBSD: lstAtEnd.c,v 1.14 2020/07/03 08:37:56 rillig Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstAtEnd.c,v 1.13 2009/01/23 21:26:30 dsl Exp $";
+static char rcsid[] = "$NetBSD: lstAtEnd.c,v 1.14 2020/07/03 08:37:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)lstAtEnd.c 8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: lstAtEnd.c,v 1.13 2009/01/23 21:26:30 dsl Exp $");
+__RCSID("$NetBSD: lstAtEnd.c,v 1.14 2020/07/03 08:37:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -75,5 +75,5 @@
     LstNode    end;
 
     end = Lst_Last(l);
-    return (Lst_InsertAfter(l, end, d));
+    return Lst_InsertAfter(l, end, d);
 }
diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstAtFront.c
--- a/usr.bin/make/lst.lib/lstAtFront.c Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstAtFront.c Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstAtFront.c,v 1.13 2009/01/23 21:26:30 dsl Exp $      */
+/*     $NetBSD: lstAtFront.c,v 1.14 2020/07/03 08:37:56 rillig Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstAtFront.c,v 1.13 2009/01/23 21:26:30 dsl Exp $";
+static char rcsid[] = "$NetBSD: lstAtFront.c,v 1.14 2020/07/03 08:37:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)lstAtFront.c       8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: lstAtFront.c,v 1.13 2009/01/23 21:26:30 dsl Exp $");
+__RCSID("$NetBSD: lstAtFront.c,v 1.14 2020/07/03 08:37:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -72,5 +72,5 @@
     LstNode    front;
 
     front = Lst_First(l);
-    return (Lst_InsertBefore(l, front, d));
+    return Lst_InsertBefore(l, front, d);
 }
diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstClose.c
--- a/usr.bin/make/lst.lib/lstClose.c   Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstClose.c   Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstClose.c,v 1.11 2006/10/27 21:37:25 dsl Exp $        */
+/*     $NetBSD: lstClose.c,v 1.12 2020/07/03 08:37:56 rillig Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstClose.c,v 1.11 2006/10/27 21:37:25 dsl Exp $";
+static char rcsid[] = "$NetBSD: lstClose.c,v 1.12 2020/07/03 08:37:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)lstClose.c 8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: lstClose.c,v 1.11 2006/10/27 21:37:25 dsl Exp $");
+__RCSID("$NetBSD: lstClose.c,v 1.12 2020/07/03 08:37:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -83,4 +83,3 @@
        list->atEnd = Unknown;
     }
 }
-
diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstConcat.c
--- a/usr.bin/make/lst.lib/lstConcat.c  Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstConcat.c  Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstConcat.c,v 1.16 2008/12/13 15:19:29 dsl Exp $       */
+/*     $NetBSD: lstConcat.c,v 1.17 2020/07/03 08:37:56 rillig Exp $    */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstConcat.c,v 1.16 2008/12/13 15:19:29 dsl Exp $";
+static char rcsid[] = "$NetBSD: lstConcat.c,v 1.17 2020/07/03 08:37:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)lstConcat.c        8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: lstConcat.c,v 1.16 2008/12/13 15:19:29 dsl Exp $");
+__RCSID("$NetBSD: lstConcat.c,v 1.17 2020/07/03 08:37:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -86,7 +86,7 @@
     List       list2 = l2;
 
     if (!LstValid (l1) || !LstValid (l2)) {
-       return (FAILURE);
+       return FAILURE;
     }
 
     if (flags == LST_CONCLINK) {
@@ -180,6 +180,5 @@
        }
     }
 
-    return (SUCCESS);
+    return SUCCESS;
 }
-
diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstDatum.c
--- a/usr.bin/make/lst.lib/lstDatum.c   Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstDatum.c   Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstDatum.c,v 1.13 2009/01/23 21:26:30 dsl Exp $        */
+/*     $NetBSD: lstDatum.c,v 1.14 2020/07/03 08:37:56 rillig Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstDatum.c,v 1.13 2009/01/23 21:26:30 dsl Exp $";
+static char rcsid[] = "$NetBSD: lstDatum.c,v 1.14 2020/07/03 08:37:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)lstDatum.c 8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: lstDatum.c,v 1.13 2009/01/23 21:26:30 dsl Exp $");
+__RCSID("$NetBSD: lstDatum.c,v 1.14 2020/07/03 08:37:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -69,9 +69,8 @@
 Lst_Datum(LstNode ln)
 {
     if (ln != NULL) {
-       return ((ln)->datum);
+       return ln->datum;
     } else {
        return NULL;
     }
 }
-
diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstDeQueue.c
--- a/usr.bin/make/lst.lib/lstDeQueue.c Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstDeQueue.c Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstDeQueue.c,v 1.14 2009/01/23 21:26:30 dsl Exp $      */
+/*     $NetBSD: lstDeQueue.c,v 1.15 2020/07/03 08:37:56 rillig Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstDeQueue.c,v 1.14 2009/01/23 21:26:30 dsl Exp $";
+static char rcsid[] = "$NetBSD: lstDeQueue.c,v 1.15 2020/07/03 08:37:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)lstDeQueue.c       8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: lstDeQueue.c,v 1.14 2009/01/23 21:26:30 dsl Exp $");
+__RCSID("$NetBSD: lstDeQueue.c,v 1.15 2020/07/03 08:37:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -81,7 +81,6 @@
     if (Lst_Remove(l, tln) == FAILURE) {
        return NULL;
     } else {
-       return (rd);
+       return rd;
     }
 }
-
diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstDupl.c
--- a/usr.bin/make/lst.lib/lstDupl.c    Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstDupl.c    Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstDupl.c,v 1.16 2009/01/23 21:26:30 dsl Exp $ */
+/*     $NetBSD: lstDupl.c,v 1.17 2020/07/03 08:37:56 rillig Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstDupl.c,v 1.16 2009/01/23 21:26:30 dsl Exp $";
+static char rcsid[] = "$NetBSD: lstDupl.c,v 1.17 2020/07/03 08:37:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)lstDupl.c  8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: lstDupl.c,v 1.16 2009/01/23 21:26:30 dsl Exp $");
+__RCSID("$NetBSD: lstDupl.c,v 1.17 2020/07/03 08:37:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -103,5 +103,5 @@
        }
     }
 
-    return (nl);
+    return nl;
 }
diff -r 0594d6808383 -r 6c86e572868c usr.bin/make/lst.lib/lstEnQueue.c
--- a/usr.bin/make/lst.lib/lstEnQueue.c Fri Jul 03 08:19:20 2020 +0000
+++ b/usr.bin/make/lst.lib/lstEnQueue.c Fri Jul 03 08:37:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lstEnQueue.c,v 1.13 2009/01/23 21:26:30 dsl Exp $      */
+/*     $NetBSD: lstEnQueue.c,v 1.14 2020/07/03 08:37:56 rillig Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
  */
 



Home | Main Index | Thread Index | Old Index