Support gcc-2.9x, too

Original commit message from CVS:
Support gcc-2.9x, too
This commit is contained in:
Ronald S. Bultje 2003-08-01 16:17:46 +00:00
parent b5c340df0d
commit 98670720c1
3 changed files with 15 additions and 9 deletions

2
common

@ -1 +1 @@
Subproject commit 8b323f41bfaccb8f30bddfc6ff8bd6a4be04a3e1 Subproject commit 6b0a313b93535f0df7956a01405ddb63a3d76b5a

View file

@ -508,13 +508,16 @@ _file_index_id_save_entries (gpointer *_key,
GstFileIndexId *ii, GstFileIndexId *ii,
gchar *prefix) gchar *prefix)
{ {
GError *err;
gchar *path;
GIOChannel *chan;
if (!ii->array) if (!ii->array)
return; return;
GError *err = NULL; err = NULL;
gchar *path = g_strdup_printf ("%s/%d", prefix, ii->id); path = g_strdup_printf ("%s/%d", prefix, ii->id);
GIOChannel *chan = chan = g_io_channel_new_file (path, "w", &err);
g_io_channel_new_file (path, "w", &err);
g_free (path); g_free (path);
if (err) goto fail; if (err) goto fail;

View file

@ -508,13 +508,16 @@ _file_index_id_save_entries (gpointer *_key,
GstFileIndexId *ii, GstFileIndexId *ii,
gchar *prefix) gchar *prefix)
{ {
GError *err;
gchar *path;
GIOChannel *chan;
if (!ii->array) if (!ii->array)
return; return;
GError *err = NULL; err = NULL;
gchar *path = g_strdup_printf ("%s/%d", prefix, ii->id); path = g_strdup_printf ("%s/%d", prefix, ii->id);
GIOChannel *chan = chan = g_io_channel_new_file (path, "w", &err);
g_io_channel_new_file (path, "w", &err);
g_free (path); g_free (path);
if (err) goto fail; if (err) goto fail;