fix few compiler warnings

This commit is contained in:
Sergey Bolshakov 2008-03-16 00:12:25 +03:00
parent 4d9edc4fe1
commit 320cc7656e
2 changed files with 2 additions and 5 deletions

1
init.c
View File

@ -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:

View File

@ -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);
}