aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 16:49:31 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 16:49:31 +0000
commitbb89b301143fe9deb962bb2d48264b27a945fcf4 (patch)
tree0d8cba8e45b1a8b975e0b8c7a8377703ab5547a6 /shell/ash.c
parent09d6cecd11b71856abab9bb68e74f0dd87a425fa (diff)
downloadbusybox-w32-bb89b301143fe9deb962bb2d48264b27a945fcf4.tar.gz
busybox-w32-bb89b301143fe9deb962bb2d48264b27a945fcf4.tar.bz2
busybox-w32-bb89b301143fe9deb962bb2d48264b27a945fcf4.zip
style cleanup: return(a) -> return a, part 1
git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 4fef0f2d3..704d03bec 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2129,10 +2129,10 @@ unalias(const char *name)
2129 INTOFF; 2129 INTOFF;
2130 *app = freealias(*app); 2130 *app = freealias(*app);
2131 INTON; 2131 INTON;
2132 return (0); 2132 return 0;
2133 } 2133 }
2134 2134
2135 return (1); 2135 return 1;
2136} 2136}
2137 2137
2138static void 2138static void
@@ -2181,7 +2181,7 @@ aliascmd(int argc, char **argv)
2181 for (ap = atab[i]; ap; ap = ap->next) { 2181 for (ap = atab[i]; ap; ap = ap->next) {
2182 printalias(ap); 2182 printalias(ap);
2183 } 2183 }
2184 return (0); 2184 return 0;
2185 } 2185 }
2186 while ((n = *++argv) != NULL) { 2186 while ((n = *++argv) != NULL) {
2187 if ((v = strchr(n+1, '=')) == NULL) { /* n+1: funny ksh stuff */ 2187 if ((v = strchr(n+1, '=')) == NULL) { /* n+1: funny ksh stuff */
@@ -2207,7 +2207,7 @@ unaliascmd(int argc, char **argv)
2207 while ((i = nextopt("a")) != '\0') { 2207 while ((i = nextopt("a")) != '\0') {
2208 if (i == 'a') { 2208 if (i == 'a') {
2209 rmaliases(); 2209 rmaliases();
2210 return (0); 2210 return 0;
2211 } 2211 }
2212 } 2212 }
2213 for (i = 0; *argptr; argptr++) { 2213 for (i = 0; *argptr; argptr++) {
@@ -13420,7 +13420,8 @@ static int arith_apply(operator op, v_n_t *numstack, v_n_t **numstackptr)
13420 /* protect geting var value, is number now */ 13420 /* protect geting var value, is number now */
13421 numptr_m1->var = NULL; 13421 numptr_m1->var = NULL;
13422 return 0; 13422 return 0;
13423err: return(-1); 13423 err:
13424 return -1;
13424} 13425}
13425 13426
13426/* longest must first */ 13427/* longest must first */