diff options
author | trasz <trasz@FreeBSD.org> | 2015-02-12 11:57:31 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-02-12 11:57:31 +0000 |
commit | a4c9135bbff0220420fee361cf7b4c00edae7abe (patch) | |
tree | 6a005b43d1fd52ca35104982f99d29103afd1ae0 /usr.sbin/ctld | |
parent | fa05d73d313ac5afaa13933fdef796e40b1b4560 (diff) | |
download | FreeBSD-src-a4c9135bbff0220420fee361cf7b4c00edae7abe.zip FreeBSD-src-a4c9135bbff0220420fee361cf7b4c00edae7abe.tar.gz |
Remove unused code.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld')
-rw-r--r-- | usr.sbin/ctld/ctld.h | 1 | ||||
-rw-r--r-- | usr.sbin/ctld/keys.c | 20 |
2 files changed, 0 insertions, 21 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h index c07c034..36e6bc4 100644 --- a/usr.sbin/ctld/ctld.h +++ b/usr.sbin/ctld/ctld.h @@ -416,7 +416,6 @@ void keys_delete(struct keys *keys); void keys_load(struct keys *keys, const struct pdu *pdu); void keys_save(struct keys *keys, struct pdu *pdu); const char *keys_find(struct keys *keys, const char *name); -int keys_find_int(struct keys *keys, const char *name); void keys_add(struct keys *keys, const char *name, const char *value); void keys_add_int(struct keys *keys, diff --git a/usr.sbin/ctld/keys.c b/usr.sbin/ctld/keys.c index 6a9ad02..c8f222d 100644 --- a/usr.sbin/ctld/keys.c +++ b/usr.sbin/ctld/keys.c @@ -161,26 +161,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) { |