aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAlexander Nedotsukov <bland@FreeBSD.org>2004-03-07 08:49:11 +0000
committerAlexander Nedotsukov <bland@FreeBSD.org>2004-03-07 08:49:11 +0000
commita113d75939d8cd610147087945e6d3ea074b1a25 (patch)
treec61b6397c8ef0322bd5cec9914d05d3c55fc6458 /games
parentb94d64b3b4a837e940be02c53a5fc508ae4d80a3 (diff)
Usual deC99fication to fix build on -STABLE.
Reported by: Troy <troy@twisted.net>
Notes
Notes: svn path=/head/; revision=103178
Diffstat (limited to 'games')
-rw-r--r--games/gcompris2/files/patch-src::gcompris::gameutil.c15
-rw-r--r--games/gcompris2/files/patch-src::gcompris::log.c18
2 files changed, 33 insertions, 0 deletions
diff --git a/games/gcompris2/files/patch-src::gcompris::gameutil.c b/games/gcompris2/files/patch-src::gcompris::gameutil.c
new file mode 100644
index 000000000000..d10767a274f3
--- /dev/null
+++ b/games/gcompris2/files/patch-src::gcompris::gameutil.c
@@ -0,0 +1,15 @@
+--- src/gcompris/gameutil.c.orig Sun Mar 7 17:36:56 2004
++++ src/gcompris/gameutil.c Sun Mar 7 17:37:28 2004
+@@ -121,9 +121,11 @@
+ filename = g_strdup_printf("%s/%s", PACKAGE_DATA_DIR, pixmapfile);
+
+ if (!g_file_test ((filename), G_FILE_TEST_EXISTS)) {
++ char *str;
++
+ g_warning (_("Couldn't find file %s !"), filename);
+
+- char *str = g_strdup_printf("%s\n%s\n%s\n%s",
++ str = g_strdup_printf("%s\n%s\n%s\n%s",
+ _("Couldn't find file"),
+ pixmapfile,
+ _("This activity is incomplete."),
diff --git a/games/gcompris2/files/patch-src::gcompris::log.c b/games/gcompris2/files/patch-src::gcompris::log.c
new file mode 100644
index 000000000000..4ac33d237d03
--- /dev/null
+++ b/games/gcompris2/files/patch-src::gcompris::log.c
@@ -0,0 +1,18 @@
+--- src/gcompris/log.c.orig Sun Mar 7 17:36:34 2004
++++ src/gcompris/log.c Sun Mar 7 17:35:56 2004
+@@ -137,6 +137,7 @@
+ void gcompris_log_end (GcomprisBoard *gcomprisBoard, gchar *status) {
+ FILE *flog;
+ gchar *file;
++ struct tm *tp;
+
+ /* Prepare our log */
+
+@@ -153,7 +154,6 @@
+ return;
+
+ /* and convert it to UTC or local time representation */
+- struct tm *tp;
+ if (USE_UTC)
+ tp = gmtime(&start_time);
+ else