summaryrefslogtreecommitdiffstats
path: root/sbin/mount_nfs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-10-30 14:05:48 +0000
committertrasz <trasz@FreeBSD.org>2014-10-30 14:05:48 +0000
commit4f7fdc1c95b08472af45d06ebdcfc1e81b38ae31 (patch)
tree842e54d41352e4251d8087147161f1f28b6098a0 /sbin/mount_nfs
parente74f24ecf25f9bb0950b9c0c1a0de9e13093e7cb (diff)
downloadFreeBSD-src-4f7fdc1c95b08472af45d06ebdcfc1e81b38ae31.zip
FreeBSD-src-4f7fdc1c95b08472af45d06ebdcfc1e81b38ae31.tar.gz
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
Diffstat (limited to 'sbin/mount_nfs')
-rw-r--r--sbin/mount_nfs/mount_nfs.c29
1 files changed, 0 insertions, 29 deletions
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"))
OpenPOWER on IntegriCloud