Use g_set_error_literal where appropriate
authorMatthias Clasen <mclasen@redhat.com>
Fri, 28 Jan 2011 03:54:32 +0000 (22:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 28 Jan 2011 03:54:32 +0000 (22:54 -0500)
gio/gpollableinputstream.c
gio/gpollableoutputstream.c

index 912eaea..c9276cb 100644 (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;
     }
 
index 7879e88..224c6ce 100644 (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;
     }