From: Stefan Fritsch Date: Sun, 23 Dec 2012 08:55:45 +0000 (+0000) Subject: add some nonnull fn attributes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43522b71334bbfeabf9418199d0f478e0302b10c;p=thirdparty%2Fapache%2Fhttpd.git add some nonnull fn attributes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425444 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/httpd.h b/include/httpd.h index 4d12b3d5063..2b82754a904 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -2243,13 +2243,15 @@ AP_DECLARE(void *) ap_realloc(void *ptr, size_t size) * Get server load params * @param ld struct to populate: -1 in fields means error */ -AP_DECLARE(void) ap_get_sload(ap_sload_t *ld); +AP_DECLARE(void) ap_get_sload(ap_sload_t *ld) + AP_FN_ATTR_NONNULL_ALL; /** * Get server load averages (ala getloadavg) * @param ld struct to populate: -1 in fields means error */ -AP_DECLARE(void) ap_get_loadavg(ap_loadavg_t *ld); +AP_DECLARE(void) ap_get_loadavg(ap_loadavg_t *ld) + AP_FN_ATTR_NONNULL_ALL; /** * Convert binary data into a hex string @@ -2258,7 +2260,8 @@ AP_DECLARE(void) ap_get_loadavg(ap_loadavg_t *ld); * @param dest pointer to buffer of length (2 * srclen + 1). The resulting * string will be NUL-terminated. */ -AP_DECLARE(void) ap_bin2hex(const void *src, apr_size_t srclen, char *dest); +AP_DECLARE(void) ap_bin2hex(const void *src, apr_size_t srclen, char *dest) + AP_FN_ATTR_NONNULL_ALL; #define AP_NORESTART APR_OS_START_USEERR + 1