summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getusershell.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2004-05-18 02:05:52 +0000
committerjfb <jfb@openbsd.org>2004-05-18 02:05:52 +0000
commit73b3e3c43784cb5fd04439d34c7436bbf85871db (patch)
tree71c634a881a5350ce76151ea76da19a38936af3a /lib/libc/gen/getusershell.c
parentsync, libiberty bump, binutils changes (non-split info pages, mmalloc gone) (diff)
downloadwireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.tar.xz
wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.zip
ansify function definitions and zap some `register'
ok millert@
Diffstat (limited to 'lib/libc/gen/getusershell.c')
-rw-r--r--lib/libc/gen/getusershell.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/getusershell.c b/lib/libc/gen/getusershell.c
index 3a54471f48f..135b7856c2c 100644
--- a/lib/libc/gen/getusershell.c
+++ b/lib/libc/gen/getusershell.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getusershell.c,v 1.4 2003/06/02 20:18:34 millert Exp $";
+static char rcsid[] = "$OpenBSD: getusershell.c,v 1.5 2004/05/18 02:05:52 jfb Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -53,7 +53,7 @@ static char **initshells(void);
* Get a list of shells from _PATH_SHELLS, if it exists.
*/
char *
-getusershell()
+getusershell(void)
{
char *ret;
@@ -66,7 +66,7 @@ getusershell()
}
void
-endusershell()
+endusershell(void)
{
if (shells != NULL)
@@ -79,14 +79,14 @@ endusershell()
}
void
-setusershell()
+setusershell(void)
{
curshell = initshells();
}
static char **
-initshells()
+initshells(void)
{
register char **sp, *cp;
register FILE *fp;