summaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
authorManuel Novoa III2003-03-19 09:13:01 +0000
committerManuel Novoa III2003-03-19 09:13:01 +0000
commitcad5364599eb5062d59e0c397ed638ddd61a8d5d (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /miscutils/crond.c
parente01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff)
downloadbusybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip
busybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz
Major coreutils update.
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 8ae54a5..cbb4ffc 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -154,7 +154,7 @@ crond_main(int ac, char **av)
if (*optarg != 0) CDir = optarg;
break;
default: /* parse error */
- show_usage();
+ bb_show_usage();
}
}
@@ -163,7 +163,7 @@ crond_main(int ac, char **av)
*/
if (chdir(CDir) != 0)
- perror_msg_and_die("chdir");
+ bb_perror_msg_and_die("chdir");
/*
* close stdin and stdout, stderr.
@@ -173,7 +173,7 @@ crond_main(int ac, char **av)
if (ForegroundOpt == 0) {
if(daemon(1, 0) < 0)
- perror_msg_and_die("daemon");
+ bb_perror_msg_and_die("daemon");
}
(void)startlogger(); /* need if syslog mode selected */
@@ -268,7 +268,7 @@ vlog(int level, int MLOG_LEVEL, const char *ctl, va_list va)
close(logfd);
} else
#ifdef FEATURE_DEBUG_OPT
- perror_msg("Can't open log file")
+ bb_perror_msg("Can't open log file")
#endif
;
}
@@ -385,7 +385,7 @@ startlogger(void)
int logfd;
if (LoggerOpt == 0)
- openlog(applet_name, LOG_CONS|LOG_PID,LOG_CRON);
+ openlog(bb_applet_name, LOG_CONS|LOG_PID,LOG_CRON);
else { /* test logfile */
if ((logfd = open(LogFile,O_WRONLY|O_CREAT|O_APPEND,600)) >= 0)