From: Paul Eggert Date: Tue, 16 Nov 2021 05:30:15 +0000 (-0800) Subject: maint: fix nonnull decl X-Git-Tag: v9.1~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b988ffa957d20661d9b811c1cfe91791743dd93;p=thirdparty%2Fcoreutils.git maint: fix nonnull decl * gl/lib/randread.h (randread_new): Do not mark with _GL_ATTRIBUTE_RETURNS_NONNULL, since it can return NULL. --- diff --git a/gl/lib/randread.h b/gl/lib/randread.h index d4151860b6..653a679643 100644 --- a/gl/lib/randread.h +++ b/gl/lib/randread.h @@ -26,8 +26,7 @@ struct randread_source; int randread_free (struct randread_source *) _GL_ATTRIBUTE_NONNULL (); struct randread_source *randread_new (char const *, size_t) - _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (randread_free, 1) - _GL_ATTRIBUTE_RETURNS_NONNULL; + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (randread_free, 1); void randread (struct randread_source *, void *, size_t) _GL_ATTRIBUTE_NONNULL (); void randread_set_handler (struct randread_source *, void (*) (void const *))