mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
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
This commit is contained in:
parent
94a43496c2
commit
b5019d3a0c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273861
@ -476,35 +476,6 @@ main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user