mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Enclose CEILING/STRDUP macro args in ()
This commit is contained in:
parent
de810942e1
commit
caaf24c482
@ -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 New Issue
Block a user