From: Stefan Fritsch Date: Sun, 23 Dec 2012 08:55:45 +0000 (+0000) Subject: add some nonnull fn attributes X-Git-Tag: 2.5.0-alpha~5957 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25f0a51a2128c8cdf518dda050fe01bb41e34675;p=apache 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 4d12b3d506..2b82754a90 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