mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
cast terminating NULL to (char *) in execl() call
Just randomly happened upon this, but the Linux Programmer's Manual states: ``` $ man 3 execl The const char *arg and subsequent ellipses in the execl(), execlp(), and execle() functions can be thought of as arg0, arg1, ..., argn. ... The list of arguments must be terminated by a null pointer, and, since these are variadic functions, this pointer must be cast (char *) NULL. ```
This commit is contained in:
parent
2154ea0f9b
commit
e5cb04df18
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ void run_config(void)
|
|||
close(xcb_get_file_descriptor(dpy));
|
||||
}
|
||||
setsid();
|
||||
execl(config_path, config_path, NULL);
|
||||
execl(config_path, config_path, (char *) NULL);
|
||||
err("Couldn't execute the configuration file.\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue