]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdio-common: Add nonnull attribute to stdio_ext.h functions.
authorCollin Funk <collin.funk1@gmail.com>
Mon, 19 May 2025 04:32:42 +0000 (21:32 -0700)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 2 Jun 2025 16:32:19 +0000 (13:32 -0300)
commitb2970d5e5be3142f4f50d589b886b53567818bcc
treebe7e5e1addf6fc9b552ad73dfd5a886b74461a3c
parente529bfe8dee4bfde3ac74927b5b7b8df65cf3bb0
stdio-common: Add nonnull attribute to stdio_ext.h functions.

* stdio-common/stdio_ext.h (__fbufsize, __freading, __fwriting)
(__freadable, __fwritable, __flbf, __fpurge, __fpending, __fsetlocking):
Add __nonnull ((1)) to these functions since they access the FP without
checking if it is NULL.

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
stdio-common/stdio_ext.h