diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-26 22:26:01 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-26 22:26:01 +0100 |
commit | fa7f70f8042c5fd8b64821cbfd66fdea5c1a2a67 (patch) | |
tree | 1c085313c8e52bfe64efd5f34579ea1a3eac201a /src | |
parent | 16cfb322781f4555a2a385a3a9df8edbe5f58fe9 (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.c | 4 |
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" }, |