diff options
| author | ginsbach <ginsbach@NetBSD.org> | 2009-05-06 02:59:12 +0000 |
|---|---|---|
| committer | ginsbach <ginsbach@NetBSD.org> | 2009-05-06 02:59:12 +0000 |
| commit | 37a52c5f7b059e91efd485ceabe562d8c6d2272d (patch) | |
| tree | 34636a3a6dfdfd705cd62f8242488426b330d047 /games/hack/hack.end.c | |
| parent | 0f7746f7ccf4d24371b286b66bbf62546ca78423 (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/hack.end.c')
| -rw-r--r-- | games/hack/hack.end.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
