[glib] Use g_set_error_literal where appropriate
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Use g_set_error_literal where appropriate
- Date: Fri, 28 Jan 2011 03:55:08 +0000 (UTC)
commit e644b29190aaec2cb2239d2541144e313e293020
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 27 22:54:32 2011 -0500
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 912eaea..c9276cb 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 7879e88..224c6ce 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]