From: Thomas Graf Date: Sat, 26 Jul 2014 19:33:22 +0000 (+0200) Subject: socket: Be correct, time(2) takes a pointer, not an integer X-Git-Tag: libnl3_2_26rc1~49^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=779d1341f8c81d22144dffa03f4069292421259e;p=thirdparty%2Flibnl.git socket: Be correct, time(2) takes a pointer, not an integer Signed-off-by: Thomas Graf Signed-off-by: Thomas Haller --- 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;