mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Put the g_return_val_if_fail() in the right place.
Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com> * glib/giochannel.c (g_io_error_get_from_g_error): Put the g_return_val_if_fail() in the right place.
This commit is contained in:
parent
934317e809
commit
6e6bbbd4d5
@ -1,3 +1,8 @@
|
||||
Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/giochannel.c (g_io_error_get_from_g_error): Put
|
||||
the g_return_val_if_fail() in the right place.
|
||||
|
||||
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
|
||||
|
||||
* glib/giochannel.c (g_io_channel_error_from_errno):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/giochannel.c (g_io_error_get_from_g_error): Put
|
||||
the g_return_val_if_fail() in the right place.
|
||||
|
||||
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
|
||||
|
||||
* glib/giochannel.c (g_io_channel_error_from_errno):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/giochannel.c (g_io_error_get_from_g_error): Put
|
||||
the g_return_val_if_fail() in the right place.
|
||||
|
||||
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
|
||||
|
||||
* glib/giochannel.c (g_io_channel_error_from_errno):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/giochannel.c (g_io_error_get_from_g_error): Put
|
||||
the g_return_val_if_fail() in the right place.
|
||||
|
||||
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
|
||||
|
||||
* glib/giochannel.c (g_io_channel_error_from_errno):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/giochannel.c (g_io_error_get_from_g_error): Put
|
||||
the g_return_val_if_fail() in the right place.
|
||||
|
||||
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
|
||||
|
||||
* glib/giochannel.c (g_io_channel_error_from_errno):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/giochannel.c (g_io_error_get_from_g_error): Put
|
||||
the g_return_val_if_fail() in the right place.
|
||||
|
||||
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
|
||||
|
||||
* glib/giochannel.c (g_io_channel_error_from_errno):
|
||||
|
@ -131,8 +131,6 @@ static GIOError
|
||||
g_io_error_get_from_g_error (GIOStatus status,
|
||||
GError *err)
|
||||
{
|
||||
g_return_val_if_fail (err != NULL, G_IO_ERROR_UNKNOWN);
|
||||
|
||||
switch (status)
|
||||
{
|
||||
case G_IO_STATUS_NORMAL:
|
||||
@ -141,6 +139,8 @@ g_io_error_get_from_g_error (GIOStatus status,
|
||||
case G_IO_STATUS_AGAIN:
|
||||
return G_IO_ERROR_AGAIN;
|
||||
case G_IO_STATUS_ERROR:
|
||||
g_return_val_if_fail (err != NULL, G_IO_ERROR_UNKNOWN);
|
||||
|
||||
if (err->domain != G_IO_CHANNEL_ERROR)
|
||||
return G_IO_ERROR_UNKNOWN;
|
||||
switch (err->code)
|
||||
|
Loading…
Reference in New Issue
Block a user