summaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-14 15:08:41 +0000
committerDenis Vlasenko2007-04-14 15:08:41 +0000
commite4712758138aabfce1cfd8ade232fd17988f23f4 (patch)
tree991ef2c2fbc644eca44f5bbf18dfc30745d85d40 /shell/msh.c
parent5f9468e99649c0daa5cacfe180fbd0e061df6fc3 (diff)
downloadbusybox-e4712758138aabfce1cfd8ade232fd17988f23f4.zip
busybox-e4712758138aabfce1cfd8ade232fd17988f23f4.tar.gz
msh: style fixes
shell/README - a place to record things about busybox shells
Diffstat (limited to 'shell/msh.c')
-rw-r--r--shell/msh.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/shell/msh.c b/shell/msh.c
index ae18061..91e302f 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -2117,7 +2117,6 @@ static struct op *newtp(void)
static struct op *namelist(struct op *t)
{
-
DBGPRINTF7(("NAMELIST: enter, t=%p, type %s, iolist=%p\n", t,
T_CMD_NAMES[t->type], iolist));
@@ -2658,7 +2657,7 @@ static int execute(struct op *t, int *pin, int *pout, int act)
};
- broken:
+ broken:
t->words = wp2;
isbreak = 0;
freehere(areanum);
@@ -2681,13 +2680,13 @@ static int execute(struct op *t, int *pin, int *pout, int act)
typedef int (*builtin_func_ptr)(struct op *);
-static builtin_func_ptr inbuilt(const char *s) {
+static builtin_func_ptr inbuilt(const char *s)
+{
const struct builtincmd *bp;
for (bp = builtincmds; bp->name; bp++)
if (strcmp(bp->name, s) == 0)
return bp->builtinfunc;
-
return NULL;
}
@@ -4379,8 +4378,7 @@ static struct wdblock *addword(char *wd, struct wdblock *wb)
return wb;
}
-static
-char **getwords(struct wdblock *wb)
+static char **getwords(struct wdblock *wb)
{
char **wd;
int nb;