aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index eb327f855..8536d43c5 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -60,6 +60,7 @@
60//usage: "\n -c DIR Cron dir. Default:"CONFIG_FEATURE_CROND_DIR"/crontabs" 60//usage: "\n -c DIR Cron dir. Default:"CONFIG_FEATURE_CROND_DIR"/crontabs"
61 61
62#include "libbb.h" 62#include "libbb.h"
63#include "common_bufsiz.h"
63#include <syslog.h> 64#include <syslog.h>
64 65
65/* glibc frees previous setenv'ed value when we do next setenv() 66/* glibc frees previous setenv'ed value when we do next setenv()
@@ -140,7 +141,7 @@ struct globals {
140 char *env_var_logname; 141 char *env_var_logname;
141#endif 142#endif
142} FIX_ALIASING; 143} FIX_ALIASING;
143#define G (*(struct globals*)&bb_common_bufsiz1) 144#define G (*(struct globals*)bb_common_bufsiz1)
144#define INIT_G() do { \ 145#define INIT_G() do { \
145 G.log_level = 8; \ 146 G.log_level = 8; \
146 G.crontab_dir_name = CRONTABS; \ 147 G.crontab_dir_name = CRONTABS; \