From: Hallvard Furuseth Date: Thu, 29 Apr 1999 23:30:01 +0000 (+0000) Subject: Enclose CEILING/STRDUP macro args in () X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~112 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=caaf24c482ca95749fcdfc5e8f0f6aa5115cfdec;p=openldap Enclose CEILING/STRDUP macro args in () --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 133ed43338..fad4c106db 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -33,8 +33,8 @@ #include "ldapconfig.h" /* local macros */ -#define CEILING(x) ((double)x > (int)x ? (int)x + 1 : (int)x) -#define STRDUP(x) (x ? strcpy(malloc(strlen(x) + 1), x) : NULL) +#define CEILING(x) ((double)(x) > (int)(x) ? (int)(x) + 1 : (int)(x)) +#define STRDUP(x) ((x) ? strcpy(malloc(strlen(x) + 1), x) : NULL) #define LDAP_PASSWD_ATTRIB "userPassword" #define LDAP_PASSWD_CONF DEFAULT_SYSCONFDIR"/passwd.conf"