diff options
author | Rob Landley <rob@landley.net> | 2006-02-22 20:01:00 +0300 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-02-22 20:01:00 +0300 |
commit | 0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58 (patch) | |
tree | f32eb89325299a3abade721ffe149b0e516747c1 /coreutils | |
parent | fb16d5c6aa8aef30d313356b5a83ef0a60114c9a (diff) |
Patch from Denis Vlasenko to constify things and fix a few typos.
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/env.c | 3 | ||||
-rw-r--r-- | coreutils/stat.c | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/env.c b/coreutils/env.c index d59e738f1..156f4e77d 100644 --- a/coreutils/env.c +++ b/coreutils/env.c @@ -59,8 +59,9 @@ static const struct option env_long_options[] = { extern int env_main(int argc, char** argv) { + static char *cleanenv[1] = { NULL }; + char **ep, *p; - char *cleanenv[1] = { NULL }; unsigned long opt; llist_t *unset_env = NULL; extern char **environ; diff --git a/coreutils/stat.c b/coreutils/stat.c index 44289fbaa..c845a2aa7 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c @@ -120,12 +120,11 @@ static char const *human_fstype(long f_type) { 0x858458f6, "romfs" }, { 0x73717368, "squashfs" }, { 0x62656572, "sysfs" }, - { 0, "UNKNOWN" }, - { 0, NULL } + { 0, "UNKNOWN" } }; for (i=0; humantypes[i].type; ++i) if (humantypes[i].type == f_type) - return humantypes[i].fs; + break; return humantypes[i].fs; } |