Warning fixes from Christos Zoulas

- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
This commit is contained in:
Love Hornquist Astrand
2011-04-29 20:25:05 -07:00
parent 66c15e7caf
commit f5f9014c90
156 changed files with 1178 additions and 1078 deletions

View File

@@ -371,8 +371,11 @@ sl_slc_help (SL_cmd *cmds, int argc, char **argv)
argv[0]);
} else {
if(c->func) {
char *fake[] = { NULL, "--help", NULL };
static char help[] = "--help";
char *fake[3];
fake[0] = argv[0];
fake[1] = help;
fake[2] = NULL;
(*c->func)(2, fake);
fprintf(stderr, "\n");
}