mirror of
https://github.com/dreamlayers/netbsd-mopd.git
synced 2026-01-13 23:26:50 +00:00
when calling openlog():
- don't use LOG_CONS - use explicit name rather than __progname
This commit is contained in:
parent
f5ecc590fe
commit
a5958267ca
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mopchk.c,v 1.6 1997/10/16 23:25:12 lukem Exp $ */
|
||||
/* $NetBSD: mopchk.c,v 1.7 2001/01/11 01:42:50 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995-96 Mats O Jansson. All rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mopchk.c,v 1.6 1997/10/16 23:25:12 lukem Exp $");
|
||||
__RCSID("$NetBSD: mopchk.c,v 1.7 2001/01/11 01:42:50 lukem Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -75,7 +75,7 @@ main(argc, argv)
|
||||
int err, aout;
|
||||
|
||||
/* All error reporting is done through syslogs. */
|
||||
openlog(__progname, LOG_PID | LOG_CONS, LOG_DAEMON);
|
||||
openlog("mopchk", LOG_PID, LOG_DAEMON);
|
||||
|
||||
opterr = 0;
|
||||
while ((op = getopt(argc, argv, "av")) != -1) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mopd.c,v 1.6 1999/06/06 03:21:43 thorpej Exp $ */
|
||||
/* $NetBSD: mopd.c,v 1.7 2001/01/11 01:42:50 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mopd.c,v 1.6 1999/06/06 03:21:43 thorpej Exp $");
|
||||
__RCSID("$NetBSD: mopd.c,v 1.7 2001/01/11 01:42:50 lukem Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -124,7 +124,7 @@ main(argc, argv)
|
||||
Usage();
|
||||
|
||||
/* All error reporting is done through syslogs. */
|
||||
openlog(__progname, LOG_PID | LOG_CONS, LOG_DAEMON);
|
||||
openlog("mopd", LOG_PID, LOG_DAEMON);
|
||||
|
||||
if ((!ForegroundFlag) && DebugFlag)
|
||||
fprintf(stdout,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mopprobe.c,v 1.5 1997/10/16 23:25:24 lukem Exp $ */
|
||||
/* $NetBSD: mopprobe.c,v 1.6 2001/01/11 01:42:50 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mopprobe.c,v 1.5 1997/10/16 23:25:24 lukem Exp $");
|
||||
__RCSID("$NetBSD: mopprobe.c,v 1.6 2001/01/11 01:42:50 lukem Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -79,7 +79,7 @@ main(argc, argv)
|
||||
char *interface;
|
||||
|
||||
/* All error reporting is done through syslogs. */
|
||||
openlog(__progname, LOG_PID | LOG_CONS, LOG_DAEMON);
|
||||
openlog("mopprobe", LOG_PID, LOG_DAEMON);
|
||||
|
||||
opterr = 0;
|
||||
while ((op = getopt(argc, argv, "ado")) != -1) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: moptrace.c,v 1.5 1997/10/16 23:25:28 lukem Exp $ */
|
||||
/* $NetBSD: moptrace.c,v 1.6 2001/01/11 01:42:50 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: moptrace.c,v 1.5 1997/10/16 23:25:28 lukem Exp $");
|
||||
__RCSID("$NetBSD: moptrace.c,v 1.6 2001/01/11 01:42:50 lukem Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -78,7 +78,7 @@ main(argc, argv)
|
||||
char *interface;
|
||||
|
||||
/* All error reporting is done through syslogs. */
|
||||
openlog(__progname, LOG_PID | LOG_CONS, LOG_DAEMON);
|
||||
openlog("moptrace", LOG_PID, LOG_DAEMON);
|
||||
|
||||
opterr = 0;
|
||||
while ((op = getopt(argc, argv, "34ad")) != -1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user