Author: trasz
Date: Thu Oct 30 14:05:48 2014
New Revision: 273861
URL: https://svnweb.freebsd.org/changeset/base/273861

Log:
  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

Modified:
  head/sbin/mount_nfs/mount_nfs.c

Modified: head/sbin/mount_nfs/mount_nfs.c
==============================================================================
--- head/sbin/mount_nfs/mount_nfs.c     Thu Oct 30 13:59:28 2014        
(r273860)
+++ head/sbin/mount_nfs/mount_nfs.c     Thu Oct 30 14:05:48 2014        
(r273861)
@@ -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"))
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to