-/* $NetBSD: init.c,v 1.12 2000/09/09 09:37:58 jsm Exp $ */
+/* $NetBSD: init.c,v 1.16 2014/03/22 23:33:33 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
#if 0
static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95";
#else
-__RCSID("$NetBSD: init.c,v 1.12 2000/09/09 09:37:58 jsm 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;