summaryrefslogtreecommitdiffstats
path: root/utils/statd/misc.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-01-11 19:13:59 -0500
committerSteve Dickson <steved@redhat.com>2010-01-12 05:50:27 -0500
commit99979a6cf2f862d2365d27fa90fab4416c374903 (patch)
tree345c993061e0b20cafaaa0cb9d3ee6311d33afaa /utils/statd/misc.c
parentc74532a864caea0ca126dc8e9f4914e7c8e86898 (diff)
downloadnfs-utils-99979a6cf2f862d2365d27fa90fab4416c374903.tar.gz
nfs-utils-99979a6cf2f862d2365d27fa90fab4416c374903.tar.xz
nfs-utils-99979a6cf2f862d2365d27fa90fab4416c374903.zip
statd: Use the new nsm_ file.c calls in rpc.statd
Replace open-coded accesses to on-disk NSM information in rpc.statd with calls to the new API. Behavior should be much the same as it was before. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/statd/misc.c')
-rw-r--r--utils/statd/misc.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/utils/statd/misc.c b/utils/statd/misc.c
index 44af30e..f2a086f 100644
--- a/utils/statd/misc.c
+++ b/utils/statd/misc.c
@@ -49,27 +49,3 @@ xstrdup (const char *string)
return (result);
}
-
-
-/*
- * Unlinking a file.
- */
-void
-xunlink (char *path, char *host)
-{
- char *tozap;
-
- tozap = malloc(strlen(path)+strlen(host)+2);
- if (tozap == NULL) {
- xlog(L_ERROR, "xunlink: malloc failed: errno %d (%m)", errno);
- return;
- }
- sprintf (tozap, "%s/%s", path, host);
-
- if (unlink (tozap) == -1)
- xlog(L_ERROR, "unlink (%s): %m", tozap);
- else
- xlog(D_GENERAL, "Unlinked %s", tozap);
-
- free(tozap);
-}