mirror of
https://gitee.com/openharmony/third_party_libnl
synced 2024-11-24 02:29:50 +00:00
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>
This commit is contained in:
parent
70849054f7
commit
779d1341f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user