]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
socket: Be correct, time(2) takes a pointer, not an integer
authorThomas Graf <tgraf@suug.ch>
Sat, 26 Jul 2014 19:33:22 +0000 (21:33 +0200)
committerThomas Haller <thaller@redhat.com>
Sun, 27 Jul 2014 09:04:07 +0000 (11:04 +0200)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/socket.c

index 5f61b382e103830ceabe0241e85933a3612ade0f..3a41caa6c0e4d3f8b6d4e70e8c85eafee06121aa 100644 (file)
@@ -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;