Usual deC99fication to fix build on -STABLE.

Reported by:	Troy <troy@twisted.net>
This commit is contained in:
Alexander Nedotsukov 2004-03-07 08:49:11 +00:00
parent b94d64b3b4
commit a113d75939
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103178
2 changed files with 33 additions and 0 deletions

View File

@ -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."),

View File

@ -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