Use g_set_error_literal where appropriate

This commit is contained in:
Matthias Clasen 2011-01-27 22:54:32 -05:00
parent cc5578fbd7
commit e644b29190
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}