summaryrefslogtreecommitdiff
path: root/sysdeps/generic/glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/glob.c')
-rw-r--r--sysdeps/generic/glob.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/sysdeps/generic/glob.c b/sysdeps/generic/glob.c
index 53e17330f4..a6d6ada8bd 100644
--- a/sysdeps/generic/glob.c
+++ b/sysdeps/generic/glob.c
@@ -334,23 +334,22 @@ extern char *alloca ();
#include <glob.h>
#ifdef HAVE_GETLOGIN_R
-extern int getlogin_r __PMT ((char *, size_t));
+extern int getlogin_r (char *, size_t);
#else
-extern char *getlogin __PMT ((void));
+extern char *getlogin (void);
#endif
-static const char *next_brace_sub __P ((const char *begin, int flags));
+static const char *next_brace_sub (const char *begin, int flags) __THROW;
#endif /* GLOB_ONLY_P */
-static int glob_in_dir __PMT ((const char *pattern, const char *directory,
- int flags,
- int (*errfunc) (const char *, int),
- glob_t *pglob));
+static int glob_in_dir (const char *pattern, const char *directory,
+ int flags, int (*errfunc) (const char *, int),
+ glob_t *pglob);
#if !defined _LIBC || !defined GLOB_ONLY_P
-static int prefix_array __P ((const char *prefix, char **array, size_t n));
-static int collated_compare __P ((const __ptr_t, const __ptr_t));
+static int prefix_array (const char *prefix, char **array, size_t n) __THROW;
+static int collated_compare (const __ptr_t, const __ptr_t) __THROW;
/* Find the end of the sub-pattern in a brace expression. */
@@ -396,7 +395,7 @@ GLOB_ATTRIBUTE
glob (pattern, flags, errfunc, pglob)
const char *pattern;
int flags;
- int (*errfunc) __PMT ((const char *, int));
+ int (*errfunc) (const char *, int);
glob_t *pglob;
{
const char *filename;
@@ -1283,7 +1282,7 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob)
const char *pattern;
const char *directory;
int flags;
- int (*errfunc) __PMT ((const char *, int));
+ int (*errfunc) (const char *, int);
glob_t *pglob;
{
__ptr_t stream = NULL;