mcron: Use symbolic constants.
* mcron.c (main, react_to_terminal_signal): Use EXIT_SUCCESS and EXIT_FAILURE macros instead of magic numbers.
This commit is contained in:
parent
ba6613fe96
commit
6cd941e061
1 changed files with 3 additions and 2 deletions
5
mcron.c
5
mcron.c
|
|
@ -46,6 +46,7 @@
|
||||||
|
|
||||||
#include <libguile.h>
|
#include <libguile.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* Forward declarations. */
|
/* Forward declarations. */
|
||||||
|
|
@ -59,7 +60,7 @@ main (int argc, char **argv)
|
||||||
setenv ("GUILE_LOAD_PATH", GUILE_LOAD_PATH, 1);
|
setenv ("GUILE_LOAD_PATH", GUILE_LOAD_PATH, 1);
|
||||||
scm_boot_guile (argc, argv, inner_main, 0);
|
scm_boot_guile (argc, argv, inner_main, 0);
|
||||||
|
|
||||||
return 0;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The effective main function (i.e. the one that actually does some work).
|
/* The effective main function (i.e. the one that actually does some work).
|
||||||
|
|
@ -101,5 +102,5 @@ void
|
||||||
react_to_terminal_signal (int sig)
|
react_to_terminal_signal (int sig)
|
||||||
{
|
{
|
||||||
scm_c_eval_string ("(delete-run-file)");
|
scm_c_eval_string ("(delete-run-file)");
|
||||||
exit (1);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue