Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2014 14:05:49 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273861 - head/sbin/mount_nfs
Message-ID:  <201410301405.s9UE5nUO046896@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410301405.s9UE5nUO046896>