pkgsrc/games/craft/patches/patch-io_hc
dholland a2c55dd58b Assorted fixes and cleanup.
- if we're going to supply the build makefile, it shouldn't require gmake.
 - don't install executable html or gif files
 - add patch comments
 - const correctness for string constants, as demanded by gcc 4.5
 - avoid needing -lcompat
 - fix a y2038 issue

PKGREVISION -> 2
2011-12-20 16:18:16 +00:00

33 lines
674 B
Text

$NetBSD: patch-io_hc,v 1.1 2011/12/20 16:18:16 dholland Exp $
- const correctness demanded by recent gcc
--- io.hc~ 2011-12-20 15:13:53.000000000 +0000
+++ io.hc
@@ -4,7 +4,7 @@ void ack ()
{while (getchar () != '\n');
}
-void s_ack (char msg [])
+void s_ack (const char msg [])
{printf ("%s ", msg);
ack ();
}
@@ -13,7 +13,7 @@ bool ok ()
{return (getchar () != 'q');
}
-double d_get (char msg [])
+double d_get (const char msg [])
{float d;
printf ("%s", msg);
@@ -21,7 +21,7 @@ double d_get (char msg [])
return (double) d;
}
-int i_get (char msg [])
+int i_get (const char msg [])
{int i;
printf ("%s", msg);