Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/hooks.c @ 1339:1ea5a4cf2ae0
Correct execl() prototype
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 29 Oct 2007 21:05:04 +0100 |
parents | 0dda8238af21 |
children | 06441b6cc23a |
comparison
equal
deleted
inserted
replaced
1338:43eb4833db0c | 1339:1ea5a4cf2ae0 |
---|---|
428 if (pid == 0) { // child | 428 if (pid == 0) { // child |
429 // Close standard file descriptors | 429 // Close standard file descriptors |
430 close(STDIN_FILENO); | 430 close(STDIN_FILENO); |
431 close(STDOUT_FILENO); | 431 close(STDOUT_FILENO); |
432 close(STDERR_FILENO); | 432 close(STDERR_FILENO); |
433 if (execl(extcmd, extcmd, arg_type, arg_info, bjid, arg_data, NULL) == -1) { | 433 if (execl(extcmd, extcmd, arg_type, arg_info, bjid, arg_data, |
434 (char *)NULL) == -1) { | |
434 // scr_LogPrint(LPRINT_LOGNORM, "Cannot execute external command."); | 435 // scr_LogPrint(LPRINT_LOGNORM, "Cannot execute external command."); |
435 exit(1); | 436 exit(1); |
436 } | 437 } |
437 } | 438 } |
438 g_free(datafname); | 439 g_free(datafname); |