mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 12:35:41 +02:00
module/network: both thrd_current() and getpid() are 32-bit
This commit is contained in:
parent
aa38063e37
commit
bf5ad4d6b7
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue