module/network: both thrd_current() and getpid() are 32-bit

This commit is contained in:
Daniel Eklöf 2019-01-06 20:41:34 +01:00
parent aa38063e37
commit bf5ad4d6b7

View file

@ -122,7 +122,7 @@ content(struct module *mod)
static uint32_t static uint32_t
nl_pid_value(void) nl_pid_value(void)
{ {
return thrd_current() << 16 | getpid(); return thrd_current() ^ getpid();
} }
/* Connect and bind to netlink socket. Returns socket fd, or -1 on error */ /* Connect and bind to netlink socket. Returns socket fd, or -1 on error */