aboutsummaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-27 20:43:19 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-27 20:43:19 +0100
commitf2c5ac590d442a32e2d5cd77af776a05b977b949 (patch)
tree0dc1859835688927e127920e2ca3f89ff9012a28 /include/unistd.h
parentfix errors (diff)
downloadslibc-f2c5ac590d442a32e2d5cd77af776a05b977b949.tar.gz
slibc-f2c5ac590d442a32e2d5cd77af776a05b977b949.tar.bz2
slibc-f2c5ac590d442a32e2d5cd77af776a05b977b949.tar.xz
fix errors and warnings
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--include/unistd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 963bb96..f4d699c 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -891,7 +891,7 @@ int fexecve(int, char* const[], char* const[]);
* @since Always.
*/
char* searchpath(const char*)
- __GCC_ONLY(__attribute__((__nonnull__(0), __warn_unused_result__)));
+ __GCC_ONLY(__attribute__((__nonnull__(1), __warn_unused_result__)));
#endif
#if defined(__SLIBC_SOURCE)
@@ -932,7 +932,7 @@ char* searchpath(const char*)
* @since Always.
*/
char* searchpath2(const char*, const char*)
- __GCC_ONLY(__attribute__((__nonnull__(0), __warn_unused_result__)));
+ __GCC_ONLY(__attribute__((__nonnull__(1), __warn_unused_result__)));
/**
* Search the environment variable $PATH for an executable
@@ -974,7 +974,7 @@ char* searchpath2(const char*, const char*)
* @since Always.
*/
char* searchpath3(const char*, const char*, const char*)
- __GCC_ONLY(__attribute__((__nonnull__(0), __warn_unused_result__)));
+ __GCC_ONLY(__attribute__((__nonnull__(1), __warn_unused_result__)));
#endif