mirror of https://github.com/ipxe/ipxe.git
Including the final (char *)NULL is the responsibility of the caller
of execl().pull/1/head
parent
a77b32aaf6
commit
c343a3a8ee
|
@ -16,7 +16,7 @@ extern int execv ( const char *command, char * const argv[] );
|
||||||
* This is a front end to execv().
|
* This is a front end to execv().
|
||||||
*/
|
*/
|
||||||
#define execl( command, arg, ... ) ( { \
|
#define execl( command, arg, ... ) ( { \
|
||||||
char * const argv[] = { (arg), ## __VA_ARGS__, NULL }; \
|
char * const argv[] = { (arg), ## __VA_ARGS__ }; \
|
||||||
int rc = execv ( (command), argv ); \
|
int rc = execv ( (command), argv ); \
|
||||||
rc; \
|
rc; \
|
||||||
} )
|
} )
|
||||||
|
|
Loading…
Reference in New Issue