[PATCH 03/14] socket: Be correct, time(2) takes a pointer, not an integer
Thomas Graf
tgraf at suug.ch
Sat Jul 26 12:33:22 PDT 2014
Signed-off-by: Thomas Graf <tgraf at suug.ch>
---
lib/socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/socket.c b/lib/socket.c
index 5f61b38..3a41caa 100644
--- a/lib/socket.c
+++ b/lib/socket.c
@@ -190,7 +190,7 @@ static struct nl_sock *__alloc_socket(struct nl_cb *cb)
sk->s_cb = nl_cb_get(cb);
sk->s_local.nl_family = AF_NETLINK;
sk->s_peer.nl_family = AF_NETLINK;
- sk->s_seq_expect = sk->s_seq_next = time(0);
+ sk->s_seq_expect = sk->s_seq_next = time(NULL);
/* the port is 0 (unspecified), meaning NL_OWN_PORT */
sk->s_flags = NL_OWN_PORT;
--
1.9.3
More information about the libnl
mailing list