Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh NFC. KNF. return (x) -> return x
details: https://anonhg.NetBSD.org/src/rev/9b4544e73b8f
branches: trunk
changeset: 994988:9b4544e73b8f
user: kre <kre%NetBSD.org@localhost>
date: Sat Dec 01 01:20:05 2018 +0000
description:
NFC. KNF. return (x) -> return x
diffstat:
bin/sh/alias.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (82 lines):
diff -r 82c65c002398 -r 9b4544e73b8f bin/sh/alias.c
--- a/bin/sh/alias.c Sat Dec 01 00:28:45 2018 +0000
+++ b/bin/sh/alias.c Sat Dec 01 01:20:05 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alias.c,v 1.17 2018/10/07 23:17:52 rillig Exp $ */
+/* $NetBSD: alias.c,v 1.18 2018/12/01 01:20:05 kre Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)alias.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: alias.c,v 1.17 2018/10/07 23:17:52 rillig Exp $");
+__RCSID("$NetBSD: alias.c,v 1.18 2018/12/01 01:20:05 kre Exp $");
#endif
#endif /* not lint */
@@ -143,11 +143,11 @@
ckfree(ap);
INTON;
}
- return (0);
+ return 0;
}
}
- return (1);
+ return 1;
}
#ifdef mkinit
@@ -187,12 +187,12 @@
for (; ap; ap = ap->next) {
if (equal(name, ap->name)) {
if (check && (ap->flag & ALIASINUSE))
- return (NULL);
- return (ap);
+ return NULL;
+ return ap;
}
}
- return (NULL);
+ return NULL;
}
const char *
@@ -256,7 +256,7 @@
if (argc == 1) {
list_aliases();
- return (0);
+ return 0;
}
while ((n = *++argv) != NULL) {
@@ -275,7 +275,7 @@
}
}
- return (ret);
+ return ret;
}
int
@@ -286,13 +286,13 @@
while ((i = nextopt("a")) != '\0') {
if (i == 'a') {
rmaliases();
- return (0);
+ return 0;
}
}
for (i = 0; *argptr; argptr++)
i = unalias(*argptr);
- return (i);
+ return i;
}
STATIC struct alias **
Home |
Main Index |
Thread Index |
Old Index