From fa7f70f8042c5fd8b64821cbfd66fdea5c1a2a67 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 26 Jan 2011 22:26:01 +0100 Subject: Correct the error codes: use ENOENT and EMSGSIZE Use correct error codes (Patrick McHardy's review) --- src/errcode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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" }, -- cgit v1.2.3