fix few compiler warnings
This commit is contained in:
parent
4d9edc4fe1
commit
320cc7656e
1
init.c
1
init.c
@ -59,6 +59,7 @@ char *udevtrigger[] = {"/sbin/udevtrigger", NULL};
|
||||
char *udevsettle[] = {"/sbin/udevsettle", NULL};
|
||||
|
||||
extern void stage1();
|
||||
void fatal(const char *) __attribute__((noreturn));
|
||||
|
||||
/*
|
||||
* this needs to handle the following cases:
|
||||
|
@ -100,11 +100,7 @@ static enum insmod_return modprobe(const char * mod_name, char * options)
|
||||
{
|
||||
int pid, status;
|
||||
if (!(pid = fork())) {
|
||||
char * argv[4];
|
||||
argv[0] = "/sbin/modprobe";
|
||||
argv[1] = mod_name;
|
||||
argv[2] = options;
|
||||
argv[3] = NULL;
|
||||
char * argv[] = { "/sbin/modprobe", (char *)mod_name, options, NULL };
|
||||
execve(argv[0], argv, NULL);
|
||||
log_message("modprobe %s failed", mod_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user