mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-22 20:26:17 +01:00
Fix some C99isms. (#154676, Kjartan Maraas)
2004-10-06 Matthias Clasen <mclasen@redhat.com> * glib/gfileutils.c: Fix some C99isms. (#154676, Kjartan Maraas)
This commit is contained in:
parent
565d9253e7
commit
01f4ccc859
@ -1,3 +1,7 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Fix some C99isms. (#154676, Kjartan Maraas)
|
||||
|
||||
2004-10-05 Anders Carlsson <andersca@gnome.org>
|
||||
|
||||
* glib/goption.c: (g_option_context_parse):
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Fix some C99isms. (#154676, Kjartan Maraas)
|
||||
|
||||
2004-10-05 Anders Carlsson <andersca@gnome.org>
|
||||
|
||||
* glib/goption.c: (g_option_context_parse):
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Fix some C99isms. (#154676, Kjartan Maraas)
|
||||
|
||||
2004-10-05 Anders Carlsson <andersca@gnome.org>
|
||||
|
||||
* glib/goption.c: (g_option_context_parse):
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Fix some C99isms. (#154676, Kjartan Maraas)
|
||||
|
||||
2004-10-05 Anders Carlsson <andersca@gnome.org>
|
||||
|
||||
* glib/goption.c: (g_option_context_parse):
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Fix some C99isms. (#154676, Kjartan Maraas)
|
||||
|
||||
2004-10-05 Anders Carlsson <andersca@gnome.org>
|
||||
|
||||
* glib/goption.c: (g_option_context_parse):
|
||||
|
@ -492,9 +492,9 @@ get_contents_regfile (const gchar *filename,
|
||||
{
|
||||
if (errno != EINTR)
|
||||
{
|
||||
g_free (buf);
|
||||
gchar *utf8_filename = g_filename_to_utf8 (filename, -1,
|
||||
NULL, NULL, NULL);
|
||||
g_free (buf);
|
||||
g_set_error (error,
|
||||
G_FILE_ERROR,
|
||||
g_file_error_from_errno (errno),
|
||||
@ -560,10 +560,9 @@ get_contents_posix (const gchar *filename,
|
||||
/* I don't think this will ever fail, aside from ENOMEM, but. */
|
||||
if (fstat (fd, &stat_buf) < 0)
|
||||
{
|
||||
close (fd);
|
||||
|
||||
gchar *utf8_filename = g_filename_to_utf8 (filename, -1,
|
||||
NULL, NULL, NULL);
|
||||
close (fd);
|
||||
g_set_error (error,
|
||||
G_FILE_ERROR,
|
||||
g_file_error_from_errno (errno),
|
||||
@ -1187,10 +1186,9 @@ g_file_read_link (const gchar *filename,
|
||||
{
|
||||
read_size = readlink (filename, buffer, size);
|
||||
if (read_size < 0) {
|
||||
g_free (buffer);
|
||||
|
||||
gchar *utf8_filename = g_filename_to_utf8 (filename, -1,
|
||||
NULL, NULL, NULL);
|
||||
g_free (buffer);
|
||||
g_set_error (error,
|
||||
G_FILE_ERROR,
|
||||
g_file_error_from_errno (errno),
|
||||
|
Loading…
Reference in New Issue
Block a user