summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-26 22:26:01 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-26 22:26:01 +0100
commitfa7f70f8042c5fd8b64821cbfd66fdea5c1a2a67 (patch)
tree1c085313c8e52bfe64efd5f34579ea1a3eac201a /src
parent16cfb322781f4555a2a385a3a9df8edbe5f58fe9 (diff)
Correct the error codes: use ENOENT and EMSGSIZE
Use correct error codes (Patrick McHardy's review)
Diffstat (limited to 'src')
-rw-r--r--src/errcode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/errcode.c b/src/errcode.c
index 00686fa..36ce58a 100644
--- a/src/errcode.c
+++ b/src/errcode.c
@@ -21,8 +21,10 @@
/* Core kernel error codes */
static const struct ipset_errcode_table core_errcode_table[] = {
/* Generic error codes */
- { EEXIST, 0,
+ { ENOENT, 0,
"The set with the given name does not exist" },
+ { EMSGSIZE, 0,
+ "Kernel error received: message could not be created" },
{ IPSET_ERR_PROTOCOL, 0,
"Kernel error received: ipset protocol error" },