mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gio/gtestdbus.c: don't use non-standard %m printf modifier
https://bugzilla.gnome.org/show_bug.cgi?id=756706
This commit is contained in:
parent
c40422f9e6
commit
0d0db60959
@ -24,6 +24,8 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <gstdio.h>
|
||||
#ifdef G_OS_UNIX
|
||||
#include <unistd.h>
|
||||
@ -243,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: %m");
|
||||
g_warning ("pipe() failed: %s", strerror (errno));
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
switch (fork ())
|
||||
{
|
||||
case -1:
|
||||
g_warning ("fork() failed: %m");
|
||||
g_warning ("fork() failed: %s", strerror (errno));
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user