mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Enclose CEILING/STRDUP macro args in ()
This commit is contained in:
parent
de810942e1
commit
caaf24c482
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue