mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
gio: Use g_strerror() instead of strerror()
This marginally improves thread safety, and marginally improves consistency. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=733821
This commit is contained in:
@@ -501,7 +501,7 @@ g_unix_connection_receive_credentials (GUnixConnection *connection,
|
||||
G_IO_ERROR,
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error checking if SO_PASSCRED is enabled for socket: %s"),
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
goto out;
|
||||
}
|
||||
if (opt_val == 0)
|
||||
@@ -516,7 +516,7 @@ g_unix_connection_receive_credentials (GUnixConnection *connection,
|
||||
G_IO_ERROR,
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error enabling SO_PASSCRED: %s"),
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
goto out;
|
||||
}
|
||||
turn_off_so_passcreds = TRUE;
|
||||
@@ -609,7 +609,7 @@ g_unix_connection_receive_credentials (GUnixConnection *connection,
|
||||
G_IO_ERROR,
|
||||
g_io_error_from_errno (errno),
|
||||
_("Error while disabling SO_PASSCRED: %s"),
|
||||
strerror (errno));
|
||||
g_strerror (errno));
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user