From: Tollef Fog Heen Date: Thu, 28 Jul 2011 15:08:15 +0000 (+0200) Subject: Enable debug by default X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b6e2fbb772cda3261497076e7e41179495949a5;p=gant Enable debug by default --- diff --git a/antlib.c b/antlib.c index 66e4bd8..9891232 100644 --- a/antlib.c +++ b/antlib.c @@ -18,7 +18,7 @@ //#include "antmessage.h" //#include "anttypes.h" -#define S(e) if (-1 == (e)) {perror(#e);exit(1);} else +#define S(e) do {if (-1 == (e)) { perror(#e);exit(1);} } while (0) #define MAXMSG 30 // SYNC,LEN,MSG,data[9+],CHKSUM #define MAXCHAN 32 @@ -29,9 +29,8 @@ #define hexval(c) ((c >= '0' && c <= '9') ? (c-'0') : ((c&0xdf)-'A'+10)) static int fd = -1; -static int dbg = 0; -static pthread_t commthread;; -static int commenabled = 1; +static int dbg = 1; +static pthread_t commthread; static RESPONSE_FUNC rfn = 0; static uchar *rbufp;