From c903443a2c3bb9cf4a90426a1210a41daad8d9b5 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 30 Oct 2003 22:57:43 +0000 Subject: [PATCH] Rename the 'log' variable rather than -fno-builtin-log --- usr.sbin/mountd/Makefile | 1 - usr.sbin/mountd/mountd.c | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/usr.sbin/mountd/Makefile b/usr.sbin/mountd/Makefile index 308a326845e9..d01516060934 100644 --- a/usr.sbin/mountd/Makefile +++ b/usr.sbin/mountd/Makefile @@ -5,6 +5,5 @@ PROG= mountd MAN= exports.5 netgroup.5 mountd.8 WARNS?= 2 -CFLAGS+= -fno-builtin-log .include diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index eb2a7dd62eec..fc521bfaf040 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -226,7 +226,7 @@ struct xucred def_anon = { int force_v2 = 0; int resvport_only = 1; int dir_only = 1; -int log = 0; +int dolog = 0; int got_sighup = 0; int opt_flags; @@ -313,7 +313,7 @@ main(argc, argv) debug = debug ? 0 : 1; break; case 'l': - log = 1; + dolog = 1; break; default: usage(); @@ -627,7 +627,7 @@ mntsrv(rqstp, transp) add_mlist(numerichost, dirpath); if (debug) warnx("mount successful"); - if (log) + if (dolog) syslog(LOG_NOTICE, "mount request succeeded from %s for %s", numerichost, dirpath); @@ -646,7 +646,7 @@ mntsrv(rqstp, transp) case RPCMNT_DUMP: if (!svc_sendreply(transp, (xdrproc_t)xdr_mlist, (caddr_t)NULL)) syslog(LOG_ERR, "can't send reply"); - else if (log) + else if (dolog) syslog(LOG_NOTICE, "dump request succeeded from %s", numerichost); @@ -675,7 +675,7 @@ mntsrv(rqstp, transp) if (!lookup_failed) del_mlist(host, dirpath); del_mlist(numerichost, dirpath); - if (log) + if (dolog) syslog(LOG_NOTICE, "umount request succeeded from %s for %s", numerichost, dirpath); @@ -693,7 +693,7 @@ mntsrv(rqstp, transp) if (!lookup_failed) del_mlist(host, NULL); del_mlist(numerichost, NULL); - if (log) + if (dolog) syslog(LOG_NOTICE, "umountall request succeeded from %s", numerichost); @@ -703,7 +703,7 @@ mntsrv(rqstp, transp) if (!svc_sendreply(transp, (xdrproc_t)xdr_explist_brief, (caddr_t)NULL)) syslog(LOG_ERR, "can't send reply"); - if (log) + if (dolog) syslog(LOG_NOTICE, "export request succeeded from %s", numerichost);