From 4f7fdc1c95b08472af45d06ebdcfc1e81b38ae31 Mon Sep 17 00:00:00 2001 From: trasz Date: Thu, 30 Oct 2014 14:05:48 +0000 Subject: Remove two functions unused after r273848. Would be nice if clang or at least scan-build yelled about it. MFC after: 1 month Sponsored by: The FreeBSD Foundation --- sbin/mount_nfs/mount_nfs.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'sbin/mount_nfs') diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 6914a03..fb986ce 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -477,35 +477,6 @@ main(int argc, char *argv[]) } static int -findopt(struct iovec *iov, int iovlen, const char *name, - char **valuep, int *lenp) -{ - int i; - - for (i = 0; i < iovlen/2; i++, iov += 2) { - if (strcmp(name, iov[0].iov_base) == 0) { - if (valuep) - *valuep = iov[1].iov_base; - if (lenp) - *lenp = iov[1].iov_len; - return (0); - } - } - return (ENOENT); -} - -static void -copyopt(struct iovec **newiov, int *newiovlen, - struct iovec *iov, int iovlen, const char *name) -{ - char *value; - int len; - - if (findopt(iov, iovlen, name, &value, &len) == 0) - build_iovec(newiov, newiovlen, name, value, len); -} - -static int sec_name_to_num(char *sec) { if (!strcmp(sec, "krb5")) -- cgit v1.1