From d1716bda6b8890d268358901d03e1f4748956ba2 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Mon, 9 Aug 2010 11:59:13 +0100 Subject: sanity patch --- tabbed.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tabbed.c') diff --git a/tabbed.c b/tabbed.c index 99202d0..cf378e3 100644 --- a/tabbed.c +++ b/tabbed.c @@ -2,8 +2,6 @@ * * To understand tabbed, start reading main(). */ -#include -#include #include #include #include @@ -12,13 +10,10 @@ #include #include #include -#include -#include #include #include #include #include -#include /* XEMBED messages */ #define XEMBED_EMBEDDED_NOTIFY 0 @@ -852,17 +847,17 @@ main(int argc, char *argv[]) { int detach = 0; if(argc == 2 && !strcmp("-v", argv[1])) - die("tabbed-"VERSION", © 2006-2008 tabbed engineers, see LICENSE for details\n"); + die("tabbed-"VERSION", © 2009-2010 tabbed engineers, see LICENSE for details\n"); else if(argc == 2 && strcmp("-d", argv[1]) == 0) detach = 1; else if(argc != 1) die("usage: tabbed [-d] [-v]\n"); if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) fprintf(stderr, "warning: no locale support\n"); - if(!(dpy = XOpenDisplay(0))) + if(!(dpy = XOpenDisplay(NULL))) die("tabbed: cannot open display\n"); setup(); - printf("%i\n", (int)win); + printf("%lu\n", win); fflush(NULL); if(detach) { if(fork() == 0) -- cgit v1.2.3