summaryrefslogtreecommitdiff
path: root/games/hack
diff options
context:
space:
mode:
authorginsbach <ginsbach@NetBSD.org>2009-05-06 02:59:12 +0000
committerginsbach <ginsbach@NetBSD.org>2009-05-06 02:59:12 +0000
commit37a52c5f7b059e91efd485ceabe562d8c6d2272d (patch)
tree34636a3a6dfdfd705cd62f8242488426b330d047 /games/hack
parent0f7746f7ccf4d24371b286b66bbf62546ca78423 (diff)
Change getdate() to getdatestr() since the former maybe present on systems
supporting X/Open System Interfaces Extension (XSI) getdate() in <time.h>. This prevents a function prototype conflict.
Diffstat (limited to 'games/hack')
-rw-r--r--games/hack/extern.h4
-rw-r--r--games/hack/hack.end.c6
-rw-r--r--games/hack/hack.unix.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/games/hack/extern.h b/games/hack/extern.h
index ce4dd45286e..18cd2540cb7 100644
--- a/games/hack/extern.h
+++ b/games/hack/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.9 2009/01/18 00:34:03 lukem Exp $ */
+/* $NetBSD: extern.h,v 1.10 2009/05/06 02:59:12 ginsbach Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -576,7 +576,7 @@ int role_index(int);
void setrandom(void);
struct tm *getlt(void);
int getyear(void);
-char *getdate(void);
+char *getdatestr(void);
int phase_of_the_moon(void);
int night(void);
int midnight(void);
diff --git a/games/hack/hack.end.c b/games/hack/hack.end.c
index 30a4fd85872..3ea064b4cff 100644
--- a/games/hack/hack.end.c
+++ b/games/hack/hack.end.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.end.c,v 1.9 2008/01/28 06:55:41 dholland Exp $ */
+/* $NetBSD: hack.end.c,v 1.10 2009/05/06 02:59:12 ginsbach Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.end.c,v 1.9 2008/01/28 06:55:41 dholland Exp $");
+__RCSID("$NetBSD: hack.end.c,v 1.10 2009/05/06 02:59:12 ginsbach Exp $");
#endif /* not lint */
#include <signal.h>
@@ -360,7 +360,7 @@ topten()
(t0->name)[NAMSZ] = 0;
(void) strncpy(t0->death, killer, DTHSZ);
(t0->death)[DTHSZ] = 0;
- (void) strcpy(t0->date, getdate());
+ (void) strcpy(t0->date, getdatestr());
/* assure minimum number of points */
if (t0->points < POINTSMIN)
diff --git a/games/hack/hack.unix.c b/games/hack/hack.unix.c
index 13f9724425e..6c8ca7e6f6f 100644
--- a/games/hack/hack.unix.c
+++ b/games/hack/hack.unix.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.unix.c,v 1.9 2003/04/02 18:36:41 jsm Exp $ */
+/* $NetBSD: hack.unix.c,v 1.10 2009/05/06 02:59:12 ginsbach Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.unix.c,v 1.9 2003/04/02 18:36:41 jsm Exp $");
+__RCSID("$NetBSD: hack.unix.c,v 1.10 2009/05/06 02:59:12 ginsbach Exp $");
#endif /* not lint */
/* This file collects some Unix dependencies; hack.pager.c contains some more */
@@ -118,7 +118,7 @@ getyear()
}
char *
-getdate()
+getdatestr()
{
static char datestr[7];
struct tm *lt = getlt();