mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
#define *_OPT_ON &ber_pvt_opt_on. The old (void*)1 definition could be == NULL.
This commit is contained in:
parent
b967cb9dbf
commit
0f29f0af96
3 changed files with 5 additions and 2 deletions
|
|
@ -149,7 +149,8 @@ typedef struct lber_memory_fns {
|
||||||
#define LBER_OPT_SOCKBUF_DEBUG 0x1002
|
#define LBER_OPT_SOCKBUF_DEBUG 0x1002
|
||||||
|
|
||||||
/* on/off values */
|
/* on/off values */
|
||||||
#define LBER_OPT_ON ((void *) 1)
|
extern char ber_pvt_opt_on;
|
||||||
|
#define LBER_OPT_ON ((void *) &ber_pvt_opt_on)
|
||||||
#define LBER_OPT_OFF ((void *) 0)
|
#define LBER_OPT_OFF ((void *) 0)
|
||||||
|
|
||||||
#define LBER_OPT_SUCCESS (0)
|
#define LBER_OPT_SUCCESS (0)
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ LDAP_BEGIN_DECL
|
||||||
#define LDAP_OPT_X_SASL_MAXBUFSIZE 0x6109
|
#define LDAP_OPT_X_SASL_MAXBUFSIZE 0x6109
|
||||||
|
|
||||||
/* on/off values */
|
/* on/off values */
|
||||||
#define LDAP_OPT_ON ((void *) 1)
|
#define LDAP_OPT_ON ((void *) &ber_pvt_opt_on)
|
||||||
#define LDAP_OPT_OFF ((void *) 0)
|
#define LDAP_OPT_OFF ((void *) 0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@
|
||||||
#include <ac/stdarg.h>
|
#include <ac/stdarg.h>
|
||||||
#include "lber-int.h"
|
#include "lber-int.h"
|
||||||
|
|
||||||
|
char ber_pvt_opt_on; /* used to get a non-NULL address for *_OPT_ON */
|
||||||
|
|
||||||
struct lber_options ber_int_options = {
|
struct lber_options ber_int_options = {
|
||||||
LBER_UNINITIALIZED, 0, 0, 0 };
|
LBER_UNINITIALIZED, 0, 0, 0 };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue