summaryrefslogtreecommitdiffstats
path: root/getroute.c
diff options
context:
space:
mode:
Diffstat (limited to 'getroute.c')
-rw-r--r--getroute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/getroute.c b/getroute.c
index 5f9475e..a615a4f 100644
--- a/getroute.c
+++ b/getroute.c
@@ -90,7 +90,8 @@ static int get_default_route_cb(struct nl_msg *msg, void *data) {
* err - netlink message
* arg - (int *) storage for the error number
*/
-static int error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err, void *arg) {
+static int error_handler(__attribute__((unused)) struct sockaddr_nl *nla,
+ struct nlmsgerr *err, void *arg) {
int *retval = arg;
if(err->error < 0) { // error_handler called even on no error (NLMSG_ERROR reply type used)
*retval = err->error;