ntp_xxxtimex: Use __nonnull to avoid null pointer
authorXiaoming Ni <nixiaoming@huawei.com>
Thu, 5 May 2022 03:01:09 +0000 (11:01 +0800)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 5 May 2022 12:18:04 +0000 (17:48 +0530)
commit6a9786b8ecf84a23f9d108a46f58e9fcca70c4a9
tree459779a5b51d8d3d651782562fccf6a0cb4c8b3c
parentd62a70fda8c7d772191ca8781dca46714efdd8cc
ntp_xxxtimex: Use __nonnull to avoid null pointer

ntp_gettime()
ntp_gettime64()
ntp_gettimex()
ntp_gettimex64()
ntp_adjtime()
Add __nonnull((1)) to avoid null pointer access.

Link: https://sourceware.org/bugzilla/show_bug.cgi?id=27662
Link: https://sourceware.org/bugzilla/show_bug.cgi?id=29084
Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
sysdeps/unix/sysv/linux/include/sys/timex.h
sysdeps/unix/sysv/linux/sys/timex.h