X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fmisc.c;h=f2a086f33b2c1f9f90000d8231dbae2113b43785;hp=44af30eea07ef8ccf7d4f9990c5ed18540c66041;hb=99979a6cf2f862d2365d27fa90fab4416c374903;hpb=c74532a864caea0ca126dc8e9f4914e7c8e86898 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); -}