AboutSummaryRefsLogTreeCommitDiffStats
path: root/mcron.c
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2015-09-05 14:52:01 +0200
committerMathieu Lirzin <mthl@gnu.org>2016-05-07 16:16:56 +0200
commit831b14d9805875862d35fccbeace426b5f55d73d (patch)
tree4241b0f9deb2912debdb4c3e8f393134d0650c30 /mcron.c
parent8be6babb3f0a62f461090e153c15ebe42e085cca (diff)
downloadmcron-831b14d9805875862d35fccbeace426b5f55d73d.tar.gz
mcron-831b14d9805875862d35fccbeace426b5f55d73d.tar.bz2
mcron-831b14d9805875862d35fccbeace426b5f55d73d.zip
mcron: Mark local functions as static.
* mcron.c (inner_main, react_to_terminal_signal, set_cron_signals): Declare static.
Diffstat (limited to 'mcron.c')
-rw-r--r--mcron.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mcron.c b/mcron.c
index 3f72cfd..0c62ec8 100644
--- a/mcron.c
+++ b/mcron.c
@@ -28,9 +28,9 @@
#include <string.h>
/* Forward declarations. */
-void inner_main (void *closure, int argc, char **argv);
-void react_to_terminal_signal (int sig);
-SCM set_cron_signals (void);
+static void inner_main (void *closure, int argc, char **argv);
+static void react_to_terminal_signal (int sig);
+static SCM set_cron_signals (void);
int
main (int argc, char **argv)
@@ -42,7 +42,7 @@ main (int argc, char **argv)
}
/* Launch the Mcron Guile main program. */
-void
+static void
inner_main (void *closure, int argc, char **argv)
{
scm_set_current_module (scm_c_resolve_module ("mcron main"));
@@ -54,7 +54,7 @@ inner_main (void *closure, int argc, char **argv)
/* Set up all the signal handlers as required by the cron personality. This
is necessary to perform the signal processing in C because the sigaction
function won't work when called from Guile. */
-SCM
+static SCM
set_cron_signals ()
{
static struct sigaction sa;
@@ -71,7 +71,7 @@ set_cron_signals ()
/* Handle signal SIG and exit. All signals that mcron handles will produce
the same behavior so we don't need to use SIG in the implementation. */
-void
+static void
react_to_terminal_signal (int sig)
{
scm_c_eval_string ("(delete-run-file)");