From 779d1341f8c81d22144dffa03f4069292421259e Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Sat, 26 Jul 2014 21:33:22 +0200 Subject: [PATCH] socket: Be correct, time(2) takes a pointer, not an integer Signed-off-by: Thomas Graf Signed-off-by: Thomas Haller --- 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;