diff options
Diffstat (limited to 'src/expr/byteorder.c')
-rw-r--r-- | src/expr/byteorder.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/expr/byteorder.c b/src/expr/byteorder.c index 903c775..4171d06 100644 --- a/src/expr/byteorder.c +++ b/src/expr/byteorder.c @@ -179,18 +179,6 @@ static const char *bo2str(uint32_t type) return expr_byteorder_str[type]; } -static inline int nftnl_str2ntoh(const char *op) -{ - if (strcmp(op, "ntoh") == 0) - return NFT_BYTEORDER_NTOH; - else if (strcmp(op, "hton") == 0) - return NFT_BYTEORDER_HTON; - else { - errno = EINVAL; - return -1; - } -} - static int nftnl_expr_byteorder_snprintf(char *buf, size_t remain, uint32_t flags, const struct nftnl_expr *e) |