summaryrefslogtreecommitdiff
path: root/games/crafty/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'games/crafty/patches/patch-ac')
-rw-r--r--games/crafty/patches/patch-ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/games/crafty/patches/patch-ac b/games/crafty/patches/patch-ac
new file mode 100644
index 00000000000..e0ca6674f80
--- /dev/null
+++ b/games/crafty/patches/patch-ac
@@ -0,0 +1,26 @@
+$NetBSD: patch-ac,v 1.6 2008/08/17 21:00:20 dholland Exp $
+
+--- option.c~ 2008-04-15 18:41:49.000000000 -0400
++++ option.c 2008-08-17 16:23:39.000000000 -0400
+@@ -3025,7 +3025,7 @@ int Option(TREE * RESTRICT tree)
+
+ output_file = stdout;
+ secs = time(0);
+- timestruct = localtime((time_t *) & secs);
++ timestruct = localtime(& secs);
+ if (nargs > 1) {
+ if (!(output_file = fopen(args[1], "w"))) {
+ printf("unable to open %s for write.\n", args[1]);
+@@ -3548,10 +3548,10 @@ int Option(TREE * RESTRICT tree)
+ */
+ else if (OptionMatch("tags", *args)) {
+ struct tm *timestruct;
+- long secs;
++ time_t secs;
+
+ secs = time(0);
+- timestruct = localtime((time_t *) & secs);
++ timestruct = localtime(& secs);
+ printf("[Event \"%s\"]\n", pgn_event);
+ printf("[Site \"%s\"]\n", pgn_site);
+ printf("[Date \"%4d.%02d.%02d\"]\n", timestruct->tm_year + 1900,