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