From e644b29190aaec2cb2239d2541144e313e293020 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 27 Jan 2011 22:54:32 -0500 Subject: [PATCH] Use g_set_error_literal where appropriate --- gio/gpollableinputstream.c | 4 ++-- 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; }