From: Paul Eggert Date: Mon, 17 Jan 2022 03:56:17 +0000 (-0800) Subject: shred: fix declaration typo X-Git-Tag: v9.1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e462d928b0025bee0d67d33c7bb774884d3dd9c0;p=thirdparty%2Fcoreutils.git shred: fix declaration typo * gl/lib/randint.h (randint_all_new): Do not declare with _GL_ATTRIBUTE_NONNULL (), as the arg can be a null pointer. This fixes a typo added in 2021-11-01T05:30:28Z!eggert@cs.ucla.edu. --- diff --git a/gl/lib/randint.h b/gl/lib/randint.h index b9721f3f51..775d1b775a 100644 --- a/gl/lib/randint.h +++ b/gl/lib/randint.h @@ -38,8 +38,7 @@ struct randint_source *randint_new (struct randread_source *) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (randint_free, 1) _GL_ATTRIBUTE_NONNULL () _GL_ATTRIBUTE_RETURNS_NONNULL; struct randint_source *randint_all_new (char const *, size_t) - _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (randint_all_free, 1) - _GL_ATTRIBUTE_NONNULL (); + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (randint_all_free, 1); struct randread_source *randint_get_source (struct randint_source const *) _GL_ATTRIBUTE_NONNULL () _GL_ATTRIBUTE_PURE; randint randint_genmax (struct randint_source *, randint genmax)