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:
Philip Withnall
2017-06-20 14:58:14 +01:00
parent c8e268bbce
commit 18f8b77c04
7 changed files with 15 additions and 15 deletions

View File

@@ -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;