Patch from Denis Vlasenko to constify things and fix a few typos.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user