summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-07-26 19:33:22 (GMT)
committerThomas Haller <thaller@redhat.com>2014-07-27 09:04:07 (GMT)
commit779d1341f8c81d22144dffa03f4069292421259e (patch)
tree1fb9f0be9bb0aa0a5f498afc31385bfc28d54a81
parent70849054f70e8a2e739a41dcc2d6659ef15aa2e3 (diff)
downloadlibnl-779d1341f8c81d22144dffa03f4069292421259e.zip
libnl-779d1341f8c81d22144dffa03f4069292421259e.tar.gz
libnl-779d1341f8c81d22144dffa03f4069292421259e.tar.bz2
socket: Be correct, time(2) takes a pointer, not an integer
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--lib/socket.c2
1 files changed, 1 insertions, 1 deletions
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;