summaryrefslogtreecommitdiffstats
path: root/utils/statd/statd.c
diff options
context:
space:
mode:
authorchip <chip>2003-08-22 16:03:04 +0000
committerchip <chip>2003-08-22 16:03:04 +0000
commit430052cab3c8044ef6d1be7b5a5ded13c45d0c40 (patch)
tree48fba66379efdb4d919ca6f42dc50cd7ecfb464c /utils/statd/statd.c
parentf2b24dbab2d61b7ddbab67db5c207b6e703e1f78 (diff)
downloadnfs-utils-430052cab3c8044ef6d1be7b5a5ded13c45d0c40.tar.gz
nfs-utils-430052cab3c8044ef6d1be7b5a5ded13c45d0c40.tar.xz
nfs-utils-430052cab3c8044ef6d1be7b5a5ded13c45d0c40.zip
Rename statd log() to note() to avoid conflict with ISO C.
Diffstat (limited to 'utils/statd/statd.c')
-rw-r--r--utils/statd/statd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/statd/statd.c b/utils/statd/statd.c
index dbd73b3..93c394f 100644
--- a/utils/statd/statd.c
+++ b/utils/statd/statd.c
@@ -94,7 +94,7 @@ sm_prog_1_wrapper (struct svc_req *rqstp, register SVCXPRT *transp)
static void
killer (int sig)
{
- log (L_FATAL, "Caught signal %d, un-registering and exiting.", sig);
+ note (N_FATAL, "Caught signal %d, un-registering and exiting.", sig);
if (!(run_mode & MODE_NOTIFY_ONLY))
pmap_unset (SM_PROG, SM_VERS);
@@ -122,11 +122,11 @@ static void log_modes(void)
{
strcat(buf,"Notify-Only ");
}
- log(L_WARNING,buf);
+ note(N_WARNING,buf);
/* future: IP aliasing
if (run_mode & MODE_NOTIFY_ONLY)
{
- dprintf(L_DEBUG,"Notify IP: %s",svr_addr);
+ dprintf(N_DEBUG,"Notify IP: %s",svr_addr);
} */
}
@@ -164,7 +164,7 @@ static void create_pidfile(void)
fprintf(fp, "%d\n", getpid());
pidfd = dup(fileno(fp));
if (fclose(fp) < 0)
- log(L_WARNING, "Flushing pid file failed.\n");
+ note(N_WARNING, "Flushing pid file failed.\n");
}
static void truncate_pidfile(void)
@@ -182,7 +182,7 @@ static void drop_privs(void)
st.st_uid = 0;
if (st.st_uid == 0) {
- log(L_WARNING, "statd running as root. chown %s to choose different user\n",
+ note(N_WARNING, "statd running as root. chown %s to choose different user\n",
SM_DIR);
return;
}
@@ -195,7 +195,7 @@ static void drop_privs(void)
setgroups(0, NULL);
if (setgid(st.st_gid) == -1
|| setuid(st.st_uid) == -1) {
- log(L_ERROR, "Fail to drop privileges");
+ note(N_ERROR, "Fail to drop privileges");
exit(1);
}
}