diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-01-27 22:54:32 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-01-27 22:54:32 -0500 |
commit | e644b29190aaec2cb2239d2541144e313e293020 (patch) | |
tree | 8d7e64b272b0a54ee6674719e30fb7c2bebbafbc | |
parent | cc5578fbd73ac3845daaa098601640a41cc8586a (diff) |
Use g_set_error_literal where appropriate
-rw-r--r-- | gio/gpollableinputstream.c | 4 | ||||
-rw-r--r-- | gio/gpollableoutputstream.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gio/gpollableinputstream.c b/gio/gpollableinputstream.c index 912eaea27..c9276cbd7 100644 --- a/gio/gpollableinputstream.c +++ b/gio/gpollableinputstream.c @@ -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; } diff --git a/gio/gpollableoutputstream.c b/gio/gpollableoutputstream.c index 7879e8839..224c6cebe 100644 --- a/gio/gpollableoutputstream.c +++ b/gio/gpollableoutputstream.c @@ -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; } |