mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-27 09:36:53 +02:00
Use g_set_error_literal where appropriate
This commit is contained in:
parent
cc5578fbd7
commit
e644b29190
@ -150,7 +150,7 @@ g_pollable_input_stream_default_read_nonblocking (GPollableInputStream *stream,
|
|||||||
{
|
{
|
||||||
if (!g_pollable_input_stream_is_readable (stream))
|
if (!g_pollable_input_stream_is_readable (stream))
|
||||||
{
|
{
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
|
||||||
g_strerror (EAGAIN));
|
g_strerror (EAGAIN));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ g_pollable_output_stream_default_write_nonblocking (GPollableOutputStream *stre
|
|||||||
{
|
{
|
||||||
if (!g_pollable_output_stream_is_writable (stream))
|
if (!g_pollable_output_stream_is_writable (stream))
|
||||||
{
|
{
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
|
||||||
g_strerror (EAGAIN));
|
g_strerror (EAGAIN));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user