diff options
Diffstat (limited to 'src/faudit')
-rw-r--r-- | src/faudit/dbus.c | 6 | ||||
-rw-r--r-- | src/faudit/x11.c | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/faudit/dbus.c b/src/faudit/dbus.c index d17d3922a..4debf2ff6 100644 --- a/src/faudit/dbus.c +++ b/src/faudit/dbus.c | |||
@@ -79,10 +79,8 @@ void dbus_test(void) { | |||
79 | else if (rv == -1) | 79 | else if (rv == -1) |
80 | printf("GOOD: cannot connect to D-Bus socket %s\n", sockfile); | 80 | printf("GOOD: cannot connect to D-Bus socket %s\n", sockfile); |
81 | } | 81 | } |
82 | else if ((sockfile = strstr(bus, "tcp:host=")) != NULL) { | 82 | else if ((sockfile = strstr(bus, "tcp:host=")) != NULL) |
83 | printf("UGLY: session bus configured for TCPcommunication.\n"); | 83 | printf("UGLY: session bus configured for TCP communication.\n"); |
84 | rv = -2; | ||
85 | } | ||
86 | else | 84 | else |
87 | printf("GOOD: cannot find a D-Bus socket\n"); | 85 | printf("GOOD: cannot find a D-Bus socket\n"); |
88 | 86 | ||
diff --git a/src/faudit/x11.c b/src/faudit/x11.c index e1a4bf66e..43f40f4e9 100644 --- a/src/faudit/x11.c +++ b/src/faudit/x11.c | |||
@@ -35,8 +35,9 @@ void x11_test(void) { | |||
35 | if (!(dir = opendir("/tmp/.X11-unix"))) { | 35 | if (!(dir = opendir("/tmp/.X11-unix"))) { |
36 | // sleep 2 seconds and try again | 36 | // sleep 2 seconds and try again |
37 | sleep(2); | 37 | sleep(2); |
38 | if (!(dir = opendir("/tmp/.X11-unix"))) | 38 | if (!(dir = opendir("/tmp/.X11-unix"))) { |
39 | ; | 39 | ; |
40 | } | ||
40 | } | 41 | } |
41 | 42 | ||
42 | if (dir == NULL) | 43 | if (dir == NULL) |