-/* $NetBSD: init.c,v 1.13 2003/08/07 09:37:02 agc Exp $ */
+/* $NetBSD: init.c,v 1.16 2014/03/22 23:33:33 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95";
#else
-__RCSID("$NetBSD: init.c,v 1.13 2003/08/07 09:37:02 agc Exp $");
+__RCSID("$NetBSD: init.c,v 1.16 2014/03/22 23:33:33 dholland Exp $");
#endif
#endif /* not lint */
#include "extern.h"
-static int checkout __P((const char *));
-static const char *getutmp __P((void));
-static int wizard __P((const char *));
+static int checkout(const char *);
+static const char *getutmp(void);
+static int wizard(const char *);
void
-initialize(filename)
- const char *filename;
+initialize(const char *filename)
{
const struct objs *p;
char *savefile;
puts("First Adventure game written by His Lordship, the honorable");
puts("Admiral D.W. Riggle\n");
location = dayfile;
- srand(getpid());
+ srandom(time(NULL));
username = getutmp();
wordinit();
if (filename == NULL) {
}
static const char *
-getutmp()
+getutmp(void)
{
struct passwd *ptr;
};
static int
-wizard(uname)
- const char *uname;
+wizard(const char *uname)
{
int flag;
}
static int
-checkout(uname)
- const char *uname;
+checkout(const char *uname)
{
const char *const *ptr;