From 9729c193cb58ddded9c5d2092dd73de124344320 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Tue, 7 Feb 2023 20:47:11 +0000 Subject: [PATCH] Nullability check for eventfd module Bugs: b/245972273 Test: None Change-Id: I5a74318850f3e49dd9d78180476e2a9d76853606 --- libc/include/sys/eventfd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/sys/eventfd.h b/libc/include/sys/eventfd.h index 1b6ad29ff..1ad11e3ff 100644 --- a/libc/include/sys/eventfd.h +++ b/libc/include/sys/eventfd.h @@ -62,7 +62,7 @@ typedef uint64_t eventfd_t; * * Returns 0 on success, or returns -1 otherwise. */ -int eventfd_read(int __fd, eventfd_t* __value); +int eventfd_read(int __fd, eventfd_t* _Nonnull __value); /** * [eventfd_write(3)](http://man7.org/linux/man-pages/man2/eventfd.2.html) is a convenience