summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-27 16:49:55 +0000
committerDenis Vlasenko2006-11-27 16:49:55 +0000
commitd9e15f206840219bb0f39c912a42fdcf8cbcaed6 (patch)
treeffdef7f5ab4a33038d0a62c9355b48f362aa463e /shell/ash.c
parent079f8afa0a16112cbaf7012c82b38b7358b82141 (diff)
downloadbusybox-d9e15f206840219bb0f39c912a42fdcf8cbcaed6.zip
busybox-d9e15f206840219bb0f39c912a42fdcf8cbcaed6.tar.gz
style cleanup: return(a) -> return a, part 2
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 704d03b..0704353 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2160,8 +2160,8 @@ lookupalias(const char *name, int check)
struct alias *ap = *__lookupalias(name);
if (check && ap && (ap->flag & ALIASINUSE))
- return (NULL);
- return (ap);
+ return NULL;
+ return ap;
}
/*
@@ -2196,7 +2196,7 @@ aliascmd(int argc, char **argv)
}
}
- return (ret);
+ return ret;
}
static int
@@ -2217,7 +2217,7 @@ unaliascmd(int argc, char **argv)
}
}
- return (i);
+ return i;
}
static struct alias *
@@ -4831,10 +4831,10 @@ done:
startloc = expdest - (char *)stackblock();
strtodest(home, SQSYNTAX, quotes);
recordregion(startloc, expdest - (char *)stackblock(), 0);
- return (p);
+ return p;
lose:
*p = c;
- return (startp);
+ return startp;
}
@@ -9969,7 +9969,7 @@ out:
else
TRACE(("reread token %s %s\n", tokname(t), t == TWORD ? wordtext : ""));
#endif
- return (t);
+ return t;
}
@@ -12531,7 +12531,7 @@ dash_arith(const char *s)
}
INTON;
- return (result);
+ return result;
}
@@ -12555,7 +12555,7 @@ letcmd(int argc, char **argv)
i = dash_arith(*ap);
}
- return (!i);
+ return !i;
}
#endif /* CONFIG_ASH_MATH_SUPPORT */