diff options
Diffstat (limited to 'babeld/kernel.c')
| -rw-r--r-- | babeld/kernel.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/babeld/kernel.c b/babeld/kernel.c index 7e78b6dec7..ba2b58131c 100644 --- a/babeld/kernel.c +++ b/babeld/kernel.c @@ -73,9 +73,9 @@ kernel_interface_wireless(struct interface *interface) } int -kernel_route(int operation, const unsigned char *pref, unsigned short plen, - const unsigned char *gate, int ifindex, unsigned int metric, - const unsigned char *newgate, int newifindex, +kernel_route(enum babel_kernel_routes operation, const unsigned char *pref, + unsigned short plen, const unsigned char *gate, int ifindex, + unsigned int metric, const unsigned char *newgate, int newifindex, unsigned int newmetric) { int rc; @@ -116,12 +116,9 @@ kernel_route(int operation, const unsigned char *pref, unsigned short plen, newmetric); return rc; break; - default: - zlog_err("this should never happen (false value - kernel_route)"); - assert(0); - exit(1); - break; } + + return 0; } static int |
