summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iscsid/keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/iscsid/keys.c')
-rw-r--r--usr.sbin/iscsid/keys.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/usr.sbin/iscsid/keys.c b/usr.sbin/iscsid/keys.c
index bab1ac9..c4b478b 100644
--- a/usr.sbin/iscsid/keys.c
+++ b/usr.sbin/iscsid/keys.c
@@ -162,26 +162,6 @@ keys_find(struct keys *keys, const char *name)
return (NULL);
}
-int
-keys_find_int(struct keys *keys, const char *name)
-{
- const char *str;
- char *endptr;
- int num;
-
- str = keys_find(keys, name);
- if (str == NULL)
- return (-1);
-
- num = strtoul(str, &endptr, 10);
- if (*endptr != '\0') {
- log_debugx("invalid numeric value \"%s\"", str);
- return (-1);
- }
-
- return (num);
-}
-
void
keys_add(struct keys *keys, const char *name, const char *value)
{
OpenPOWER on IntegriCloud