aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-02-22 17:01:00 +0000
committerRob Landley <rob@landley.net>2006-02-22 17:01:00 +0000
commit0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58 (patch)
treef32eb89325299a3abade721ffe149b0e516747c1 /coreutils
parentfb16d5c6aa8aef30d313356b5a83ef0a60114c9a (diff)
downloadbusybox-w32-0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58.tar.gz
busybox-w32-0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58.tar.bz2
busybox-w32-0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58.zip
Patch from Denis Vlasenko to constify things and fix a few typos.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/env.c3
-rw-r--r--coreutils/stat.c5
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[] = {
59 59
60extern int env_main(int argc, char** argv) 60extern int env_main(int argc, char** argv)
61{ 61{
62 static char *cleanenv[1] = { NULL };
63
62 char **ep, *p; 64 char **ep, *p;
63 char *cleanenv[1] = { NULL };
64 unsigned long opt; 65 unsigned long opt;
65 llist_t *unset_env = NULL; 66 llist_t *unset_env = NULL;
66 extern char **environ; 67 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)
120 { 0x858458f6, "romfs" }, 120 { 0x858458f6, "romfs" },
121 { 0x73717368, "squashfs" }, 121 { 0x73717368, "squashfs" },
122 { 0x62656572, "sysfs" }, 122 { 0x62656572, "sysfs" },
123 { 0, "UNKNOWN" }, 123 { 0, "UNKNOWN" }
124 { 0, NULL }
125 }; 124 };
126 for (i=0; humantypes[i].type; ++i) 125 for (i=0; humantypes[i].type; ++i)
127 if (humantypes[i].type == f_type) 126 if (humantypes[i].type == f_type)
128 return humantypes[i].fs; 127 break;
129 return humantypes[i].fs; 128 return humantypes[i].fs;
130} 129}
131 130