From: Jaakko Heinonen Date: Fri, 7 Nov 2003 17:24:52 +0000 (+0000) Subject: minor macro tweaks X-Git-Tag: upstream/0.6.1~2^2~236 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=e0d3bd38567657774a95ac4beaceb8a067ceef4d;p=pkg%2Fabook.git minor macro tweaks --- diff --git a/abook.h b/abook.h index f6c756b..20bad88 100644 --- a/abook.h +++ b/abook.h @@ -38,10 +38,10 @@ int strncasecmp (const char *, const char *, size_t); #define hide_cursor() curs_set(0) #define show_cursor() curs_set(1) -#define safe_atoi(X) (X == NULL) ? 0 : atoi(X) +#define safe_atoi(X) ((X == NULL) ? 0 : atoi(X)) #define my_free(X) do {free(X); X=NULL;} while(0) -#define safe_str(X) X == NULL ? "" : X -#define safe_strdup(X) (X == NULL) ? NULL : strdup(X) +#define safe_str(X) ((X == NULL) ? "" : X) +#define safe_strdup(X) ((X == NULL) ? NULL : strdup(X)) #ifndef min # define min(x,y) (((x)<(y)) ? (x):(y)) diff --git a/configure b/configure index 8619287..5bd1f39 100755 --- a/configure +++ b/configure @@ -1527,7 +1527,7 @@ fi # Define the identity of the package. PACKAGE=abook - VERSION=0.5.1 + VERSION=0.5.1rc1 cat >>confdefs.h <<_ACEOF