Skip to content
Commit 9b5e138f authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

linux: Avoid shifting a negative signed on POSIX timer interface



The current macros uses pid as signed value, which triggers a compiler
warning for process and thread timers.  Replace MAKE_PROCESS_CPUCLOCK
with static inline function that expects the pid as unsigned.  These
are similar to what Linux does internally.

Checked on x86_64-linux-gnu.
Reviewed-by: default avatarArjun Shankar <arjun@redhat.com>
parent 643a2d01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment