From 2ed4e9d9279117ffa50294095e172804cd1b68e5 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 20 Oct 2016 17:04:37 -0400 Subject: remove parameter names from public headers inclusion of these names was unintentional and in most cases is a namespace violation. Daniel Sabogal tracked down and reported these. --- include/grp.h | 2 +- include/ifaddrs.h | 4 ++-- include/stdlib.h | 2 +- include/sys/xattr.h | 4 ++-- include/threads.h | 2 +- include/wchar.h | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/grp.h b/include/grp.h index 358181bf..d8581409 100644 --- a/include/grp.h +++ b/include/grp.h @@ -34,7 +34,7 @@ void endgrent(void); void setgrent(void); #ifdef _GNU_SOURCE -struct group *fgetgrent(FILE *stream); +struct group *fgetgrent(FILE *); int putgrent(const struct group *, FILE *); #endif diff --git a/include/ifaddrs.h b/include/ifaddrs.h index 4726db6e..c0328a8e 100644 --- a/include/ifaddrs.h +++ b/include/ifaddrs.h @@ -24,8 +24,8 @@ struct ifaddrs { #define ifa_broadaddr ifa_ifu.ifu_broadaddr #define ifa_dstaddr ifa_ifu.ifu_dstaddr -void freeifaddrs(struct ifaddrs *ifp); -int getifaddrs(struct ifaddrs **ifap); +void freeifaddrs(struct ifaddrs *); +int getifaddrs(struct ifaddrs **); #ifdef __cplusplus } diff --git a/include/stdlib.h b/include/stdlib.h index d2c911fc..42ca8336 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -39,7 +39,7 @@ void *malloc (size_t); void *calloc (size_t, size_t); void *realloc (void *, size_t); void free (void *); -void *aligned_alloc(size_t alignment, size_t size); +void *aligned_alloc(size_t, size_t); _Noreturn void abort (void); int atexit (void (*) (void)); diff --git a/include/sys/xattr.h b/include/sys/xattr.h index f926493c..6479fcc6 100644 --- a/include/sys/xattr.h +++ b/include/sys/xattr.h @@ -13,10 +13,10 @@ extern "C" { ssize_t getxattr(const char *, const char *, void *, size_t); ssize_t lgetxattr(const char *, const char *, void *, size_t); -ssize_t fgetxattr(int filedes, const char *, void *, size_t); +ssize_t fgetxattr(int, const char *, void *, size_t); ssize_t listxattr(const char *, char *, size_t); ssize_t llistxattr(const char *, char *, size_t); -ssize_t flistxattr(int filedes, char *, size_t); +ssize_t flistxattr(int, char *, size_t); int setxattr(const char *, const char *, const void *, size_t, int); int lsetxattr(const char *, const char *, const void *, size_t, int); int fsetxattr(int, const char *, const void *, size_t, int); diff --git a/include/threads.h b/include/threads.h index 01794826..8122b3b1 100644 --- a/include/threads.h +++ b/include/threads.h @@ -75,7 +75,7 @@ int cnd_timedwait(cnd_t *__restrict, mtx_t *__restrict, const struct timespec *_ int cnd_wait(cnd_t *, mtx_t *); int tss_create(tss_t *, tss_dtor_t); -void tss_delete(tss_t key); +void tss_delete(tss_t); int tss_set(tss_t, void *); void *tss_get(tss_t); diff --git a/include/wchar.h b/include/wchar.h index 3e6db5fc..369b1e9f 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -53,7 +53,7 @@ int wcscmp (const wchar_t *, const wchar_t *); int wcsncmp (const wchar_t *, const wchar_t *, size_t); int wcscoll(const wchar_t *, const wchar_t *); -size_t wcsxfrm (wchar_t *__restrict, const wchar_t *__restrict, size_t n); +size_t wcsxfrm (wchar_t *__restrict, const wchar_t *__restrict, size_t); wchar_t *wcschr (const wchar_t *, wchar_t); wchar_t *wcsrchr (const wchar_t *, wchar_t); @@ -165,7 +165,7 @@ int wcscasecmp_l(const wchar_t *, const wchar_t *, locale_t); int wcsncasecmp(const wchar_t *, const wchar_t *, size_t); int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t, locale_t); int wcscoll_l(const wchar_t *, const wchar_t *, locale_t); -size_t wcsxfrm_l(wchar_t *__restrict, const wchar_t *__restrict, size_t n, locale_t); +size_t wcsxfrm_l(wchar_t *__restrict, const wchar_t *__restrict, size_t, locale_t); #endif #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) -- cgit v1.2.1