]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
annotate `isc_random_buf` with the gcc access attribute
authorAydın Mercan <aydin@isc.org>
Thu, 26 Feb 2026 12:14:33 +0000 (15:14 +0300)
committerAydın Mercan <aydin@isc.org>
Thu, 12 Mar 2026 11:34:46 +0000 (14:34 +0300)
lib/isc/include/isc/random.h

index 757a6486a8825fb08b68d09b6c2725038557b76e..07086cc8c347763b44e7812f18e0580df62bb04e 100644 (file)
@@ -16,6 +16,7 @@
 #include <inttypes.h>
 #include <stdlib.h>
 
+#include <isc/attributes.h>
 #include <isc/types.h>
 
 /*! \file isc/random.h
@@ -36,6 +37,7 @@ isc_random32(void);
  * \brief Returns a single 32-bit random value.
  */
 
+ISC_ATTR_ACCESS(write_only, 1, 2)
 void
 isc_random_buf(void *buf, size_t buflen);
 /*!<