genl: remove error message from library

The caller should call perror() instead.
This commit is contained in:
Pablo Neira Ayuso 2014-02-10 18:08:28 +01:00
parent 0a50537206
commit 1f8f1b1ba3
1 changed files with 1 additions and 5 deletions

6
genl.c
View File

@ -98,12 +98,8 @@ int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq,
break;
ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
}
if (ret == -1) {
perror("error");
return -1;
}
return 0;
return ret;
}
static struct nlmsghdr *