mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 10:08:56 +01:00 
			
		
		
		
	Use g_set_error_literal where appropriate
This commit is contained in:
		@@ -150,7 +150,7 @@ 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_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
 | 
			
		||||
                           g_strerror (EAGAIN));
 | 
			
		||||
      return -1;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -151,7 +151,7 @@ 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_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
 | 
			
		||||
                           g_strerror (EAGAIN));
 | 
			
		||||
      return -1;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user