From 7d867a846324d40b332f95fdc0aba1d6af7b0403 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 20 Apr 1997 06:18:10 +0000 Subject: [PATCH] removed __P git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1602 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/getusershell.c | 6 +----- lib/roken/strftime.c | 12 +++++------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/roken/getusershell.c b/lib/roken/getusershell.c index 009d7df82..9d4892309 100644 --- a/lib/roken/getusershell.c +++ b/lib/roken/getusershell.c @@ -54,10 +54,6 @@ RCSID("$Id$"); #include #endif -#ifndef __P -#define __P(X) X -#endif - #ifndef _PATH_SHELLS #define _PATH_SHELLS "/etc/shells" #endif @@ -77,7 +73,7 @@ RCSID("$Id$"); static char *okshells[] = { _PATH_BSHELL, _PATH_CSHELL, NULL }; static char **curshell, **shells, *strings; -static char **initshells __P((void)); +static char **initshells (void); /* * Get a list of shells from _PATH_SHELLS, if it exists. diff --git a/lib/roken/strftime.c b/lib/roken/strftime.c index aa6475efe..3473778fd 100644 --- a/lib/roken/strftime.c +++ b/lib/roken/strftime.c @@ -64,15 +64,13 @@ static char *Bfmt[] = { static size_t gsize; static char *pt; -#ifndef __P -#define __P(x) () -#endif -static int _add __P((char *)); -static int _conv __P((int, int, int)); + +static int _add (char *); +static int _conv (int, int, int); #ifdef HAVE_MKTIME -static int _secs __P((const struct tm *)); +static int _secs (const struct tm *); #endif /* HAVE_MKTIME */ -static size_t _fmt __P((const char *, const struct tm *)); +static size_t _fmt (const char *, const struct tm *); size_t strftime(char *s, size_t maxsize, const char *format, const struct tm *t)