diff options
author | Erik Andersen | 2000-01-29 07:06:24 +0000 |
---|---|---|
committer | Erik Andersen | 2000-01-29 07:06:24 +0000 |
commit | 04e97024e78f452526f710a5b3969c78a65f2b33 (patch) | |
tree | d5eba84927f0426038db2a1ef3b8b241996fd420 | |
parent | a6d0dbc86fd8a84f9c2a05f77013bd3eb5efa697 (diff) | |
download | busybox-04e97024e78f452526f710a5b3969c78a65f2b33.zip busybox-04e97024e78f452526f710a5b3969c78a65f2b33.tar.gz |
Clear up some ambiguity with old style assignments.
-Erik
-rw-r--r-- | chmod_chown_chgrp.c | 8 | ||||
-rw-r--r-- | coreutils/date.c | 4 | ||||
-rw-r--r-- | date.c | 4 | ||||
-rw-r--r-- | find.c | 6 | ||||
-rw-r--r-- | findutils/find.c | 6 | ||||
-rw-r--r-- | init.c | 4 | ||||
-rw-r--r-- | init/init.c | 4 | ||||
-rw-r--r-- | logger.c | 2 | ||||
-rw-r--r-- | mount.c | 4 | ||||
-rw-r--r-- | sysklogd/logger.c | 2 | ||||
-rw-r--r-- | util-linux/mount.c | 4 |
11 files changed, 24 insertions, 24 deletions
diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c index fb5cb92..773f4b0 100644 --- a/chmod_chown_chgrp.c +++ b/chmod_chown_chgrp.c @@ -27,8 +27,8 @@ #include "internal.h" -static uid_t uid=-1; -static gid_t gid=-1; +static uid_t uid = -1; +static gid_t gid = -1; static int whichApp; static char* invocationName=NULL; static char* theMode=NULL; @@ -92,7 +92,7 @@ int chmod_chown_chgrp_main(int argc, char **argv) if (argc < 2) usage( appUsage); - invocationName=*argv; + invocationName = *argv; argc--; argv++; @@ -111,7 +111,7 @@ int chmod_chown_chgrp_main(int argc, char **argv) } if ( whichApp == CHMOD_APP ) { - theMode=*argv; + theMode = *argv; } else { /* Find the selected group */ diff --git a/coreutils/date.c b/coreutils/date.c index 6be89df..77e7c39 100644 --- a/coreutils/date.c +++ b/coreutils/date.c @@ -204,10 +204,10 @@ date_main(int argc, char * * argv) } } else { if ( (date_fmt == NULL) && (strcmp(*argv, "+")==0) ) - date_fmt=*argv; + date_fmt = *argv; else if (date_str == NULL) { set_time = 1; - date_str=*argv; + date_str = *argv; } else { usage ( date_usage); } @@ -204,10 +204,10 @@ date_main(int argc, char * * argv) } } else { if ( (date_fmt == NULL) && (strcmp(*argv, "+")==0) ) - date_fmt=*argv; + date_fmt = *argv; else if (date_str == NULL) { set_time = 1; - date_str=*argv; + date_str = *argv; } else { usage ( date_usage); } @@ -70,7 +70,7 @@ int find_main(int argc, char **argv) argv++; if ( argc > 0 && **argv != '-') { - directory=*argv; + directory = *argv; argc--; argv++; } @@ -89,8 +89,8 @@ int find_main(int argc, char **argv) case 'n': if (strcmp(*argv, "name")==0) { if (argc-- > 1) { - pattern=*(++argv); - stopit=-TRUE; + pattern = *(++argv); + stopit=TRUE; } else { usage (find_usage); } diff --git a/findutils/find.c b/findutils/find.c index 40a508f..47ce21e 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -70,7 +70,7 @@ int find_main(int argc, char **argv) argv++; if ( argc > 0 && **argv != '-') { - directory=*argv; + directory = *argv; argc--; argv++; } @@ -89,8 +89,8 @@ int find_main(int argc, char **argv) case 'n': if (strcmp(*argv, "name")==0) { if (argc-- > 1) { - pattern=*(++argv); - stopit=-TRUE; + pattern = *(++argv); + stopit=TRUE; } else { usage (find_usage); } @@ -154,7 +154,7 @@ void message(int device, char *fmt, ...) } #else - static int log_fd=-1; + static int log_fd = -1; /* Take full control of the log tty, and never close it. * It's mine, all mine! Muhahahaha! */ @@ -166,7 +166,7 @@ void message(int device, char *fmt, ...) device = CONSOLE; } else if ((log_fd = device_open(log, O_RDWR|O_NDELAY)) < 0) { - log_fd=-1; + log_fd = -1; fprintf(stderr, "Bummer, can't write to log on %s!\r\n", log); fflush(stderr); return; diff --git a/init/init.c b/init/init.c index 722ccd2..d88b64b 100644 --- a/init/init.c +++ b/init/init.c @@ -154,7 +154,7 @@ void message(int device, char *fmt, ...) } #else - static int log_fd=-1; + static int log_fd = -1; /* Take full control of the log tty, and never close it. * It's mine, all mine! Muhahahaha! */ @@ -166,7 +166,7 @@ void message(int device, char *fmt, ...) device = CONSOLE; } else if ((log_fd = device_open(log, O_RDWR|O_NDELAY)) < 0) { - log_fd=-1; + log_fd = -1; fprintf(stderr, "Bummer, can't write to log on %s!\r\n", log); fflush(stderr); return; @@ -161,7 +161,7 @@ extern int logger_main(int argc, char **argv) message=buf; } else { if (argc>=1) { - message=*argv; + message = *argv; } else { fprintf(stderr, "No message\n"); exit( FALSE); @@ -354,9 +354,9 @@ extern int mount_main (int argc, char **argv) } } else { if (device == NULL) - device=*argv; + device = *argv; else if (directory == NULL) - directory=*argv; + directory = *argv; else { goto goodbye; } diff --git a/sysklogd/logger.c b/sysklogd/logger.c index d7ae023..aab95b9 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c @@ -161,7 +161,7 @@ extern int logger_main(int argc, char **argv) message=buf; } else { if (argc>=1) { - message=*argv; + message = *argv; } else { fprintf(stderr, "No message\n"); exit( FALSE); diff --git a/util-linux/mount.c b/util-linux/mount.c index 4b0901f..4c9e77b 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -354,9 +354,9 @@ extern int mount_main (int argc, char **argv) } } else { if (device == NULL) - device=*argv; + device = *argv; else if (directory == NULL) - directory=*argv; + directory = *argv; else { goto goodbye; } |