From da80033c2f0c6037794721bd9ad36237e6d2ccca Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Tue, 26 Aug 2014 01:09:08 +0200 Subject: nf: nfnl_*_str2copy_mode() should return int ... to be able to return a negative error code for unknown modes. [thaller@redhat.com: This is potentially an ABI break, but since the size of the enum is implementation defined, it seems anyway unstable to have them as function arguments/return values.] http://lists.infradead.org/pipermail/libnl/2014-August/001616.html Signed-off-by: Thomas Graf Signed-off-by: Thomas Haller --- src/nf-log.c | 2 +- src/nf-queue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nf-log.c b/src/nf-log.c index 913ba163..c0cffe07 100644 --- a/src/nf-log.c +++ b/src/nf-log.c @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) struct nl_sock *rt_sock; struct nl_cache *link_cache; struct nfnl_log *log; - enum nfnl_log_copy_mode copy_mode; + int copy_mode; uint32_t copy_range; int err; int family; diff --git a/src/nf-queue.c b/src/nf-queue.c index 922d9c8e..7151381d 100644 --- a/src/nf-queue.c +++ b/src/nf-queue.c @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) struct nl_sock *rt_sock; struct nl_cache *link_cache; struct nfnl_queue *queue; - enum nfnl_queue_copy_mode copy_mode; + int copy_mode; uint32_t copy_range; int err = 1; int family; -- cgit v1.2.3