diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/getttyent.c | 4 | ||||
-rw-r--r-- | misc/getusershell.c | 2 | ||||
-rw-r--r-- | misc/sys/cdefs.h | 9 |
3 files changed, 8 insertions, 7 deletions
diff --git a/misc/getttyent.c b/misc/getttyent.c index 2ff0a7b5c2..7560170890 100644 --- a/misc/getttyent.c +++ b/misc/getttyent.c @@ -59,8 +59,8 @@ getttynam(tty) return (t); } -static char *skip __P((char *)) internal_function; -static char *value __P((char *)) internal_function; +static char *skip (char *) __THROW internal_function; +static char *value (char *) __THROW internal_function; struct ttyent * getttyent() diff --git a/misc/getusershell.c b/misc/getusershell.c index 96ab5c8be1..95f0eab5e2 100644 --- a/misc/getusershell.c +++ b/misc/getusershell.c @@ -48,7 +48,7 @@ static char sccsid[] = "@(#)getusershell.c 8.1 (Berkeley) 6/4/93"; static const char *okshells[] = { _PATH_BSHELL, _PATH_CSHELL, NULL }; static char **curshell, **shells, *strings; -static char **initshells __P((void)); +static char **initshells (void) __THROW; /* * Get a list of shells from _PATH_SHELLS, if it exists. diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 2271e10fdc..65e0aa3cc4 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -54,10 +54,11 @@ # define __NTH(fct) fct # endif # endif -# define __P(args) args __THROW -/* This macro will be used for functions which might take C++ callback - functions. */ -# define __PMT(args) args +/* These two macros are not usde in glibc anymore. They are kept here + only because some other projects expect the macros to be + defined. */ +# define __P(args) BROKEN BROKEN args +# define __PMT(args) BROKEN BROKEN args #else /* Not GCC. */ |