summaryrefslogtreecommitdiffstats
path: root/src/nlapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nlapi.c')
-rw-r--r--src/nlapi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nlapi.c b/src/nlapi.c
index d88a1ed..318199f 100644
--- a/src/nlapi.c
+++ b/src/nlapi.c
@@ -43,7 +43,7 @@ int nlapi_open(uint32_t groups) {
struct sockaddr_nl addr;
if ((nlapi_fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE)) < 0) {
- fprintf(stderr, "socket(PF_NETLINK): %s\n", strerror(errno));
+ daemon_log(LOG_ERR, "socket(PF_NETLINK): %s\n", strerror(errno));
return -1;
}
@@ -54,7 +54,7 @@ int nlapi_open(uint32_t groups) {
if (bind(nlapi_fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
close(nlapi_fd);
- fprintf(stderr, "bind(): %s\n", strerror(errno));
+ daemon_log(LOG_ERR, "bind(): %s\n", strerror(errno));
return -1;
}
@@ -104,7 +104,6 @@ void nlapi_close(void) {
close(nlapi_fd);
nlapi_fd = -1;
-
while (callbacks) {
struct callback_info *c = callbacks;
callbacks = callbacks->next;