diff options
author | Phil Sutter <phil@nwl.cc> | 2020-12-19 02:20:40 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-03-09 14:23:13 +0100 |
commit | 100708a7e720e17a7c46a6d414ec3fb663ee01aa (patch) | |
tree | 811a63f7b53f0af75df7e7d3471e21e4aca8bbf0 | |
parent | 985955fe41f53019d0def894cf9b697228e4b774 (diff) |
expr/socket: Kill dead code
Function str2socket_key() was never used.
Fixes: 038d226f2e6cc ("src: Add support for native socket matching")
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | src/expr/socket.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/expr/socket.c b/src/expr/socket.c index 8cd4536..76fc903 100644 --- a/src/expr/socket.c +++ b/src/expr/socket.c @@ -126,19 +126,6 @@ static const char *socket_key2str(uint8_t key) return "unknown"; } -static inline int str2socket_key(const char *str) -{ - int i; - - for (i = 0; i < NFT_SOCKET_MAX + 1; i++) { - if (strcmp(str, socket_key2str_array[i]) == 0) - return i; - } - - errno = EINVAL; - return -1; -} - static int nftnl_expr_socket_snprintf_default(char *buf, size_t len, const struct nftnl_expr *e) |