diff options
Diffstat (limited to 'lib/route/cls_api.c')
-rw-r--r-- | lib/route/cls_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/route/cls_api.c b/lib/route/cls_api.c index f5a083a..73f05df 100644 --- a/lib/route/cls_api.c +++ b/lib/route/cls_api.c @@ -6,7 +6,7 @@ * License as published by the Free Software Foundation version 2.1 * of the License. * - * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch> + * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch> */ /** @@ -44,7 +44,7 @@ int rtnl_cls_register(struct rtnl_cls_ops *cops) for (op = &cls_ops_list; (o = *op) != NULL; op = &o->co_next) if (!strcasecmp(cops->co_kind, o->co_kind)) - return nl_errno(EEXIST); + return -NLE_EXIST; cops->co_next = NULL; *op = cops; @@ -65,7 +65,7 @@ int rtnl_cls_unregister(struct rtnl_cls_ops *cops) break; if (!o) - return nl_errno(ENOENT); + return -NLE_OBJ_NOTFOUND; *op = cops->co_next; |