diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2014-10-30 14:05:48 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2014-10-30 14:05:48 +0000 |
commit | b5019d3a0ce2fcb86cf7b637a86e1cc167728fae (patch) | |
tree | 842e54d41352e4251d8087147161f1f28b6098a0 /sbin/mount_nfs | |
parent | 94a43496c2f86dfd6cad106402f23f06229930f7 (diff) | |
download | src-b5019d3a0ce2fcb86cf7b637a86e1cc167728fae.tar.gz src-b5019d3a0ce2fcb86cf7b637a86e1cc167728fae.zip |
Notes
Diffstat (limited to 'sbin/mount_nfs')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 6914a036ed6b..fb986ce221ad 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")) |