From 7b6e2fbb772cda3261497076e7e41179495949a5 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Thu, 28 Jul 2011 17:08:15 +0200 Subject: [PATCH] Enable debug by default --- antlib.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.5