From caaf24c482ca95749fcdfc5e8f0f6aa5115cfdec Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 29 Apr 1999 23:30:01 +0000 Subject: [PATCH] Enclose CEILING/STRDUP macro args in () --- clients/tools/ldappasswd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.5