diff options
author | Rob Landley <rob@landley.net> | 2014-02-16 11:09:23 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-02-16 11:09:23 -0600 |
commit | 1fb3ae7075ab9d198b757f7da5cc9c748abc3574 (patch) | |
tree | 883cbdd98ecc483f6a5a948b1709e878de5bbdca /scripts | |
parent | 33b022d873abc5255e22bf70687e5c0a260fb107 (diff) | |
download | toybox-1fb3ae7075ab9d198b757f7da5cc9c748abc3574.tar.gz |
Various cleanups found by Tom Sparrow's static analysis.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/config2help.c | 3 | ||||
-rw-r--r-- | scripts/mkflags.c | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/config2help.c b/scripts/config2help.c index 4b6c9dec..41b04c38 100644 --- a/scripts/config2help.c +++ b/scripts/config2help.c @@ -192,7 +192,6 @@ int dashlinesort(char **a, char **b) int main(int argc, char *argv[]) { FILE *fp; - char *file; if (argc != 3) { fprintf(stderr, "usage: config2help Config.in .config\n"); @@ -392,4 +391,6 @@ int main(int argc, char *argv[]) } sym = sym->next; } + + return 0; } diff --git a/scripts/mkflags.c b/scripts/mkflags.c index 17067861..c350b198 100644 --- a/scripts/mkflags.c +++ b/scripts/mkflags.c @@ -72,7 +72,6 @@ struct flag *digest(char *string) int main(int argc, char *argv[]) { char command[256], flags[1023], allflags[1024]; - unsigned bit; for (;;) { struct flag *flist, *aflist, *offlist; |