From 0ebb4d08a39557d8f0c5806b91487df4325e0b87 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 26 Mar 2016 09:43:36 -0400 Subject: compile fixes --- src/firecfg/main.c | 2 ++ src/firejail/x11.c | 11 +++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/firecfg/main.c b/src/firecfg/main.c index 0c6b278b5..66c7b203f 100644 --- a/src/firecfg/main.c +++ b/src/firecfg/main.c @@ -18,6 +18,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _GNU_SOURCE +#include #include #include #include diff --git a/src/firejail/x11.c b/src/firejail/x11.c index 10e89ea7e..fb8f5efa2 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c @@ -166,7 +166,7 @@ void x11_start_xephyr(int argc, char **argv) { pid_t server = 0; - // unfortunately, xpra does a number of wired things when started by root user!!! + // unfortunately, xpra does a number of weird things when started by root user!!! if (getuid() == 0) { fprintf(stderr, "Error: this feature is not available when running as root\n"); exit(1); @@ -283,7 +283,7 @@ void x11_start_xpra(int argc, char **argv) { pid_t server = 0; - // unfortunately, xpra does a number of wired things when started by root user!!! + // unfortunately, xpra does a number of weird things when started by root user!!! if (getuid() == 0) { fprintf(stderr, "Error: this feature is not available when running as root\n"); exit(1); @@ -396,13 +396,8 @@ void x11_start_xpra(int argc, char **argv) { void x11_start(int argc, char **argv) { EUID_ASSERT(); - int i; - struct stat s; - pid_t client = 0; - pid_t server = 0; - - // unfortunately, xpra does a number of wired things when started by root user!!! + // unfortunately, xpra does a number of weird things when started by root user!!! if (getuid() == 0) { fprintf(stderr, "Error: this feature is not available when running as root\n"); exit(1); -- cgit v1.2.3-54-g00ecf