summaryrefslogtreecommitdiffstats
path: root/src/nf-queue.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-08-25 23:09:08 (GMT)
committerThomas Haller <thaller@redhat.com>2014-08-26 11:03:30 (GMT)
commitda80033c2f0c6037794721bd9ad36237e6d2ccca (patch)
treec61f24136a1b63d86567ba3b33f2bf402044080f /src/nf-queue.c
parent03f3f3c4c0f0a6136a3c30a1e554a53c0a6f3a06 (diff)
downloadlibnl-da80033c2f0c6037794721bd9ad36237e6d2ccca.zip
libnl-da80033c2f0c6037794721bd9ad36237e6d2ccca.tar.gz
libnl-da80033c2f0c6037794721bd9ad36237e6d2ccca.tar.bz2
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 <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/nf-queue.c')
-rw-r--r--src/nf-queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nf-queue.c b/src/nf-queue.c
index 922d9c8..7151381 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;