Enclose CEILING/STRDUP macro args in ()

This commit is contained in:
Hallvard Furuseth 1999-04-29 23:30:01 +00:00
parent de810942e1
commit caaf24c482

View File

@ -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"