diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-06 23:47:43 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-06 23:47:43 +0000 |
commit | acfe0a6f79f135c701e5b2ce57db63a0703470e7 (patch) | |
tree | e1e552b8d9092f76782133d03790effc893470d2 /usr.sbin/cron/client.c | |
parent | db543bd70b34173b3acc9da3ce200f0e56d76183 (diff) |
Use __progname instead of the homegrown ProgramName.
Diffstat (limited to 'usr.sbin/cron/client.c')
-rw-r--r-- | usr.sbin/cron/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/client.c b/usr.sbin/cron/client.c index 0334bff30e3..1957b6369f3 100644 --- a/usr.sbin/cron/client.c +++ b/usr.sbin/cron/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.3 2015/11/04 20:28:17 millert Exp $ */ +/* $OpenBSD: client.c,v 1.4 2015/11/06 23:47:42 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -101,7 +101,7 @@ poke_daemon(const char *spool_dir, unsigned char cookie) if (snprintf(s_un.sun_path, sizeof s_un.sun_path, "%s/%s", SPOOL_DIR, CRONSOCK) >= sizeof(s_un.sun_path)) { fprintf(stderr, "%s: %s/%s: path too long\n", - ProgramName, SPOOL_DIR, CRONSOCK); + __progname, SPOOL_DIR, CRONSOCK); return; } s_un.sun_family = AF_UNIX; @@ -110,7 +110,7 @@ poke_daemon(const char *spool_dir, unsigned char cookie) send(sock, &cookie, 1, MSG_NOSIGNAL); else fprintf(stderr, "%s: warning, cron does not appear to be " - "running.\n", ProgramName); + "running.\n", __progname); if (sock >= 0) close(sock); } |