summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-18 11:49:45 +0000
committerdd <dd@FreeBSD.org>2001-07-18 11:49:45 +0000
commitc821518deccc91e99365d666efaedd4bcc336d22 (patch)
treee19152a84063e7a6ef41d99173748a5f305a452e /usr.sbin
parentcb0776eac7517c5f0bed393da83f5a1027b13b20 (diff)
downloadFreeBSD-src-c821518deccc91e99365d666efaedd4bcc336d22.zip
FreeBSD-src-c821518deccc91e99365d666efaedd4bcc336d22.tar.gz
Remove an unused variable, and don't try to print a char[] using %d.
Submitted by: Mark Peek <mark@whistle.com>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/cron/lib/entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/lib/entry.c b/usr.sbin/cron/lib/entry.c
index 2554827..9e8ed7d 100644
--- a/usr.sbin/cron/lib/entry.c
+++ b/usr.sbin/cron/lib/entry.c
@@ -262,7 +262,7 @@ load_entry(file, error_func, pw, envp)
if (!pw) {
char *username = cmd; /* temp buffer */
- char *s, *group;
+ char *s;
struct group *grp;
#ifdef LOGIN_CAP
login_cap_t *lc;
@@ -409,7 +409,7 @@ load_entry(file, error_func, pw, envp)
*/
e->cmd = strdup(cmd);
if (e->cmd == NULL) {
- warn("strdup(\"%d\")", cmd);
+ warn("strdup(\"%s\")", cmd);
ecode = e_mem;
goto eof;
}
OpenPOWER on IntegriCloud