diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-07-03 12:33:09 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-07-03 12:33:09 +0300 |
commit | fedb3e46ec39e2e980eb1ae25138e9e0b310d084 (patch) | |
tree | 67afd8e9fb365c4ca4bc8fd62ba0a3f60ac2ac39 /src/lib/malloc | |
parent | a9628c0c0b2cc5c0286c4e49591b3b18dc054e87 (diff) | |
download | tor-fedb3e46ec39e2e980eb1ae25138e9e0b310d084.tar.gz tor-fedb3e46ec39e2e980eb1ae25138e9e0b310d084.zip |
Remove ATTR_NONNULL macro
Diffstat (limited to 'src/lib/malloc')
-rw-r--r-- | src/lib/malloc/util_malloc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/malloc/util_malloc.h b/src/lib/malloc/util_malloc.h index 88ecc04530..a1e9531176 100644 --- a/src/lib/malloc/util_malloc.h +++ b/src/lib/malloc/util_malloc.h @@ -21,13 +21,13 @@ void *tor_malloc_zero_(size_t size) ATTR_MALLOC; void *tor_calloc_(size_t nmemb, size_t size) ATTR_MALLOC; void *tor_realloc_(void *ptr, size_t size); void *tor_reallocarray_(void *ptr, size_t size1, size_t size2); -char *tor_strdup_(const char *s) ATTR_MALLOC ATTR_NONNULL((1)); +char *tor_strdup_(const char *s) ATTR_MALLOC; char *tor_strndup_(const char *s, size_t n) - ATTR_MALLOC ATTR_NONNULL((1)); + ATTR_MALLOC; void *tor_memdup_(const void *mem, size_t len) - ATTR_MALLOC ATTR_NONNULL((1)); + ATTR_MALLOC; void *tor_memdup_nulterm_(const void *mem, size_t len) - ATTR_MALLOC ATTR_NONNULL((1)); + ATTR_MALLOC; void tor_free_(void *mem); /** Release memory allocated by tor_malloc, tor_realloc, tor_strdup, |