mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +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:
@@ -245,14 +245,14 @@ watcher_init (void)
|
||||
/* fork a child to clean up when we are killed */
|
||||
if (pipe (pipe_fds) != 0)
|
||||
{
|
||||
g_warning ("pipe() failed: %s", strerror (errno));
|
||||
g_warning ("pipe() failed: %s", g_strerror (errno));
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
switch (fork ())
|
||||
{
|
||||
case -1:
|
||||
g_warning ("fork() failed: %s", strerror (errno));
|
||||
g_warning ("fork() failed: %s", g_strerror (errno));
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user