Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin use explicit name rather than __progname in openlog
details: https://anonhg.NetBSD.org/src/rev/7fcfb5b67423
branches: trunk
changeset: 502048:7fcfb5b67423
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jan 11 01:43:25 2001 +0000
description:
use explicit name rather than __progname in openlog
diffstat:
usr.sbin/rarpd/rarpd.c | 6 +++---
usr.sbin/rbootd/rbootd.c | 6 +++---
usr.sbin/rpc.bootparamd/bootparamd.c | 8 ++++----
3 files changed, 10 insertions(+), 10 deletions(-)
diffs (84 lines):
diff -r 464dca55ef5f -r 7fcfb5b67423 usr.sbin/rarpd/rarpd.c
--- a/usr.sbin/rarpd/rarpd.c Thu Jan 11 01:43:10 2001 +0000
+++ b/usr.sbin/rarpd/rarpd.c Thu Jan 11 01:43:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rarpd.c,v 1.40 2000/11/20 14:59:30 is Exp $ */
+/* $NetBSD: rarpd.c,v 1.41 2001/01/11 01:43:25 lukem Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -28,7 +28,7 @@
#endif /* not lint */
#ifndef lint
-__RCSID("$NetBSD: rarpd.c,v 1.40 2000/11/20 14:59:30 is Exp $");
+__RCSID("$NetBSD: rarpd.c,v 1.41 2001/01/11 01:43:25 lukem Exp $");
#endif
@@ -143,7 +143,7 @@
char *ifname, *hostname;
/* All error reporting is done through syslogs. */
- openlog(__progname, LOG_PID, LOG_DAEMON);
+ openlog("rarpd", LOG_PID, LOG_DAEMON);
opterr = 0;
while ((op = getopt(argc, argv, "adfl")) != -1) {
diff -r 464dca55ef5f -r 7fcfb5b67423 usr.sbin/rbootd/rbootd.c
--- a/usr.sbin/rbootd/rbootd.c Thu Jan 11 01:43:10 2001 +0000
+++ b/usr.sbin/rbootd/rbootd.c Thu Jan 11 01:43:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rbootd.c,v 1.11 2000/12/20 01:30:26 cgd Exp $ */
+/* $NetBSD: rbootd.c,v 1.12 2001/01/11 01:43:45 lukem Exp $ */
/*
* Copyright (c) 1988, 1992 The University of Utah and the Center
@@ -57,7 +57,7 @@
#if 0
static char sccsid[] = "@(#)rbootd.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: rbootd.c,v 1.11 2000/12/20 01:30:26 cgd Exp $");
+__RCSID("$NetBSD: rbootd.c,v 1.12 2001/01/11 01:43:45 lukem Exp $");
#endif
#endif /* not lint */
@@ -144,7 +144,7 @@
(void) signal(SIGUSR2, DebugOff);
}
- openlog(__progname, LOG_PID, LOG_DAEMON);
+ openlog("rbootd", LOG_PID, LOG_DAEMON);
/*
* If no interface was specified, get one now.
diff -r 464dca55ef5f -r 7fcfb5b67423 usr.sbin/rpc.bootparamd/bootparamd.c
--- a/usr.sbin/rpc.bootparamd/bootparamd.c Thu Jan 11 01:43:10 2001 +0000
+++ b/usr.sbin/rpc.bootparamd/bootparamd.c Thu Jan 11 01:43:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootparamd.c,v 1.36 2000/07/20 06:21:51 thorpej Exp $ */
+/* $NetBSD: bootparamd.c,v 1.37 2001/01/11 01:44:23 lukem Exp $ */
/*
* This code is not copyright, and is placed in the public domain.
@@ -11,7 +11,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bootparamd.c,v 1.36 2000/07/20 06:21:51 thorpej Exp $");
+__RCSID("$NetBSD: bootparamd.c,v 1.37 2001/01/11 01:44:23 lukem Exp $");
#endif
#include <sys/types.h>
@@ -104,9 +104,9 @@
case 's':
dolog = 1;
#ifndef LOG_DAEMON
- openlog(__progname, 0, 0);
+ openlog("rpc.bootparamd", 0, 0);
#else
- openlog(__progname, 0, LOG_DAEMON);
+ openlog("rpc.bootparamd", 0, LOG_DAEMON);
setlogmask(LOG_UPTO(LOG_NOTICE));
#endif
break;
Home |
Main Index |
Thread Index |
Old Index