From efd4daedfbe9d1cd0809f08c244c419231575436 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 13 Jun 2005 19:09:23 +0000 Subject: 2005-06-13 Jeremy Katz * Makefile Makefile.inc mini-wm.c xmouse.c xutils.c isys/Makefile isys/isys.c isys/lang.c isys/smp.c isys/uncpio.c isys/gzlib/Makefile isys/gzlib/inflate.c loader2/Makefile loader2/driverdisk.c loader2/driverselect.c loader2/hdinstall.c loader2/init.c loader2/kickstart.c loader2/loader.c loader2/loadermisc.c loader2/moduleinfo.h loader2/modules.c loader2/net.c loader2/nfsinstall.c loader2/telnet.c loader2/undomounts.c loader2/urlinstall.c utils/Makefile utils/genhdlist.c utils/mapshdr.c utils/snarffont.c: Define cflags in one place (Makefile.inc) and use a consistent set everywhere. Fix up some of the compile warnings this uncovered. Also fix a few more things that -Wextra turned up. --- mini-wm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mini-wm.c') diff --git a/mini-wm.c b/mini-wm.c index e2bbe9d4b..c388d4d1a 100644 --- a/mini-wm.c +++ b/mini-wm.c @@ -16,6 +16,7 @@ #include +#include #include #include @@ -100,14 +101,13 @@ mini_wm_start (void) int main( int argc, char *argv[] ) { - gtk_init (&argc, &argv); mini_wm_start (); /* Indicate back to anaconda that we now have established * connection to the display. */ - write(1, "#", 1); + if (write(1, "#", 1) == -1) abort(); gtk_main(); -- cgit