projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07eab1f
)
system-linux: remove an unnecessary libnl-tiny hack
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Oct 2011 17:29:04 +0000
(19:29 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Oct 2011 17:29:04 +0000
(19:29 +0200)
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index d7030fb7bac8f807d60b167d4a128704afffd4fe..f2f96601658789ba077961d863015d7aa91fddfd 100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-10,6
+10,7
@@
#include <netlink/msg.h>
#include <netlink/attr.h>
+#include <netlink/socket.h>
#include <libubox/uloop.h>
#include "netifd.h"
@@
-58,11
+59,7
@@
int system_init(void)
nlmsg_free(m);
}
-#ifdef NLA_PUT_DATA
rtnl_event.fd = nl_socket_get_fd(sock_rtnl_event);
-#else
- rtnl_event.fd = sock_rtnl_event->s_fd; // libnl-tiny hack...
-#endif
uloop_fd_add(&rtnl_event, ULOOP_READ | ULOOP_EDGE_TRIGGER);
}