diff options
author | Коренберг Марк <mark@ideco.ru> | 2012-08-30 18:40:11 +0600 |
---|---|---|
committer | Коренберг Марк <mark@ideco.ru> | 2012-08-30 18:40:25 +0600 |
commit | 8f2ce4d791ebdbfcb3699f8890568964c5572a70 (patch) | |
tree | dec1c5acbbe584cf9782a08bc601d70abf807502 /lib | |
parent | 3bf8712feb2eb7f6d4a1bfdb02c0a7a2f6bcb13b (diff) | |
download | libnl-8f2ce4d791ebdbfcb3699f8890568964c5572a70.tar.gz |
More clean NL_AUTO_PORT and NL_AUTO_SEQ usage in nl_complete_msg
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -274,10 +274,10 @@ void nl_complete_msg(struct nl_sock *sk, struct nl_msg *msg) struct nlmsghdr *nlh; nlh = nlmsg_hdr(msg); - if (nlh->nlmsg_pid == 0) + if (nlh->nlmsg_pid == NL_AUTO_PORT) nlh->nlmsg_pid = sk->s_local.nl_pid; - if (nlh->nlmsg_seq == 0) + if (nlh->nlmsg_seq == NL_AUTO_SEQ) nlh->nlmsg_seq = sk->s_seq_next++; if (msg->nm_protocol == -1) |