mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +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 <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
#include <gstdio.h>
|
#include <gstdio.h>
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -243,14 +245,14 @@ watcher_init (void)
|
|||||||
/* fork a child to clean up when we are killed */
|
/* fork a child to clean up when we are killed */
|
||||||
if (pipe (pipe_fds) != 0)
|
if (pipe (pipe_fds) != 0)
|
||||||
{
|
{
|
||||||
g_warning ("pipe() failed: %m");
|
g_warning ("pipe() failed: %s", strerror (errno));
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (fork ())
|
switch (fork ())
|
||||||
{
|
{
|
||||||
case -1:
|
case -1:
|
||||||
g_warning ("fork() failed: %m");
|
g_warning ("fork() failed: %s", strerror (errno));
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user