Browse Source

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.
Rich Felker 8 years ago
parent
commit
2ed4e9d927
6 changed files with 9 additions and 9 deletions
  1. 1 1
      include/grp.h
  2. 2 2
      include/ifaddrs.h
  3. 1 1
      include/stdlib.h
  4. 2 2
      include/sys/xattr.h
  5. 1 1
      include/threads.h
  6. 2 2
      include/wchar.h

+ 1 - 1
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
 

+ 2 - 2
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
 }

+ 1 - 1
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));

+ 2 - 2
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);

+ 1 - 1
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);

+ 2 - 2
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)