aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-03-19 09:42:02 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-03-19 09:42:02 +0000
commit4eff18189a5ec3d474709dd73698ff5dcbc603c6 (patch)
tree31437c2d09e30fdb107cd256208041d05bb1429d
parentcad5364599eb5062d59e0c397ed638ddd61a8d5d (diff)
downloadbusybox-4eff18189a5ec3d474709dd73698ff5dcbc603c6.tar.gz
Things my compiler didn't catch...
-rw-r--r--coreutils/chgrp.c2
-rw-r--r--coreutils/df.c2
-rw-r--r--coreutils/od.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c
index f5e5d29f1..ac3e81ad9 100644
--- a/coreutils/chgrp.c
+++ b/coreutils/chgrp.c
@@ -47,7 +47,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
int chgrp_main(int argc, char **argv)
{
long gid;
- int recursiveFlag;;
+ int recursiveFlag;
int retval = EXIT_SUCCESS;
char *p;
diff --git a/coreutils/df.c b/coreutils/df.c
index 7d007a003..cbe316920 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -59,7 +59,7 @@ extern int df_main(int argc, char **argv)
FILE *mount_table;
struct mntent *mount_entry;
struct statfs s;
- static const char hdr_1k[] = "1k-blocks"; /* default display is kilobytes */;
+ static const char hdr_1k[] = "1k-blocks"; /* default display is kilobytes */
const char *disp_units_hdr = hdr_1k;
while ((opt = getopt(argc, argv, "k"
diff --git a/coreutils/od.c b/coreutils/od.c
index 5eaaf5024..b18c53c3f 100644
--- a/coreutils/od.c
+++ b/coreutils/od.c
@@ -167,10 +167,10 @@ static const signed char od_o2si[] = {
int od_main(int argc, char **argv)
{
int ch;
- bb_dump_vflag = FIRST;
- bb_dump_length = -1;
int first = 1;
signed char *p;
+ bb_dump_vflag = FIRST;
+ bb_dump_length = -1;
while ((ch = getopt(argc, argv, od_opts)) > 0) {
if (((p = strchr(od_opts, ch)) != NULL) && (*p >= 0)) {