[monkey-bubble: 101/753] Warning fixes from patch in BUGFIX #1594
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 101/753] Warning fixes from patch in BUGFIX #1594
- Date: Wed, 14 Jul 2010 22:04:10 +0000 (UTC)
commit d88d140195825f6ea6722dfb2481107556ac7552
Author: Elliot Lee <sopwith src gnome org>
Date: Thu Aug 19 16:10:16 1999 +0000
Warning fixes from patch in BUGFIX #1594
Warning fixes from patch in BUGFIX #1594
libgnome/gnome-score.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index 5b169e8..54912e4 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -95,7 +95,6 @@ log_score (const gchar * progname, const gchar * level, gchar * username,
GList *scores = NULL, *anode;
gchar *game_score_file;
gfloat ascore;
- time_t atime;
struct ascore_t *anitem, *curscore;
int i;
gint retval = 1;
@@ -108,17 +107,18 @@ log_score (const gchar * progname, const gchar * level, gchar * username,
{
while(fgets(buf, sizeof(buf), infile))
{
+ long ltime;
i = strlen (buf) - 1; /* Chomp */
while (isspace (buf[i]))
buf[i--] = '\0';
- if(sscanf(buf, "%f %ld %s", &ascore, &atime, name) != 3)
+ if(sscanf(buf, "%f %ld %s", &ascore, <ime, name) != 3)
break;
anitem = g_new(struct ascore_t, 1);
anitem->score = ascore;
anitem->username = g_strdup (name);
- anitem->scoretime = atime;
+ anitem->scoretime = (time_t)ltime;
scores = g_list_append (scores, (gpointer) anitem);
}
fclose (infile);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]