diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-27 20:02:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-27 20:02:48 +0100 |
commit | 76f92d5a06b686a56dc534d9cbc74489b8b73390 (patch) | |
tree | ecf875dcd6b7062f9b7487ae48a263b75a2c7a8d | |
parent | fix issue #9 on github (diff) | |
download | slibc-76f92d5a06b686a56dc534d9cbc74489b8b73390.tar.gz slibc-76f92d5a06b686a56dc534d9cbc74489b8b73390.tar.bz2 slibc-76f92d5a06b686a56dc534d9cbc74489b8b73390.tar.xz |
fix a few errors
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r-- | include/alloca.h | 2 | ||||
-rw-r--r-- | include/string.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/alloca.h b/include/alloca.h index 49d8879..4c9db33 100644 --- a/include/alloca.h +++ b/include/alloca.h @@ -72,7 +72,7 @@ void* alloca(size_t); * @since Always. */ void (needstack)(int); -# elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) +# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) # define needstack(n) __needstack(n, __FILE__, __LINE__, __func__) # else # define needstack(n) __needstack(n, __FILE__, __LINE__, NULL) diff --git a/include/string.h b/include/string.h index 8369f30..758ca6e 100644 --- a/include/string.h +++ b/include/string.h @@ -293,7 +293,7 @@ void* memcmove(void*, const void*, int, size_t); * * @since Always. */ -char* strset(char* str, int c); +char* strset(char* str, int c) __GCC_ONLY(__attribute__((__returns_nonnull__, __nonnull__))); #endif |