diff options
author | chip <chip> | 2003-08-22 16:03:04 +0000 |
---|---|---|
committer | chip <chip> | 2003-08-22 16:03:04 +0000 |
commit | 430052cab3c8044ef6d1be7b5a5ded13c45d0c40 (patch) | |
tree | 48fba66379efdb4d919ca6f42dc50cd7ecfb464c /utils/statd/state.c | |
parent | f2b24dbab2d61b7ddbab67db5c207b6e703e1f78 (diff) | |
download | nfs-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/state.c')
-rw-r--r-- | utils/statd/state.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/statd/state.c b/utils/statd/state.c index 6becdc7..c241985 100644 --- a/utils/statd/state.c +++ b/utils/statd/state.c @@ -34,7 +34,7 @@ change_state (void) die ("read (%s): %s", SM_STAT_PATH, strerror (errno)); if (size != 0 && size != sizeof MY_STATE) { - log (L_ERROR, "Error in status file format...correcting."); + note (N_ERROR, "Error in status file format...correcting."); if (close (fd) == -1) die ("close (%s): %s", SM_STAT_PATH, strerror (errno)); @@ -42,7 +42,7 @@ change_state (void) if ((fd = creat (SM_STAT_PATH, S_IRUSR | S_IWUSR)) == -1) die ("creat (%s): %s", SM_STAT_PATH, strerror (errno)); } - log (L_DEBUG, "New state: %u", (++MY_STATE % 2) ? MY_STATE : ++MY_STATE); + note (N_DEBUG, "New state: %u", (++MY_STATE % 2) ? MY_STATE : ++MY_STATE); if (lseek (fd, 0, SEEK_SET) == -1) die ("lseek (%s): %s", SM_STAT_PATH, strerror (errno)); @@ -51,10 +51,10 @@ change_state (void) die ("write (%s): %s", SM_STAT_PATH, strerror (errno)); if (fsync (fd) == -1) - log (L_ERROR, "fsync (%s): %s", SM_STAT_PATH, strerror (errno)); + note (N_ERROR, "fsync (%s): %s", SM_STAT_PATH, strerror (errno)); if (close (fd) == -1) - log (L_ERROR, "close (%s): %s", SM_STAT_PATH, strerror (errno)); + note (N_ERROR, "close (%s): %s", SM_STAT_PATH, strerror (errno)); if (MY_NAME == NULL) { char fullhost[SM_MAXSTRLEN + 1]; @@ -64,7 +64,7 @@ change_state (void) die ("gethostname: %s", strerror (errno)); if ((hostinfo = gethostbyname (fullhost)) == NULL) - log (L_ERROR, "gethostbyname error for %s", fullhost); + note (N_ERROR, "gethostbyname error for %s", fullhost); else { strncpy (fullhost, hostinfo->h_name, sizeof (fullhost) - 1); fullhost[sizeof (fullhost) - 1] = '\0'; @@ -122,5 +122,5 @@ shuffle_dirs (void) free(dst); } if (closedir (nld) == -1) - log (L_ERROR, "closedir (%s): %s", SM_DIR, strerror (errno)); + note (N_ERROR, "closedir (%s): %s", SM_DIR, strerror (errno)); } |