Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
60b05c64
Commit
60b05c64
authored
Apr 27, 2004
by
Pierangelo Masarati
Browse files
STRLENOF cleanup
parent
2349373d
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/lber_pvt.h
View file @
60b05c64
...
...
@@ -165,7 +165,7 @@ ber_bvarray_add_x LDAP_P(( BerVarray *p, BerValue *bv, void *ctx ));
#define ber_bvchr(bv,c) \
memchr( (bv)->bv_val, (c), (bv)->bv_len )
#define BER_BVC(s) {
sizeof(s) - 1
, (s) }
#define BER_BVC(s) {
STRLENOF(s)
, (s) }
#define BER_BVNULL { 0L, NULL }
#define BER_BVZERO(bv) \
do { \
...
...
@@ -174,7 +174,7 @@ ber_bvarray_add_x LDAP_P(( BerVarray *p, BerValue *bv, void *ctx ));
} while (0)
#define BER_BVSTR(bv,s) \
do { \
(bv)->bv_len =
sizeof
(s)
-1
; \
(bv)->bv_len =
STRLENOF
(s); \
(bv)->bv_val = (s); \
} while (0)
#define BER_BVISNULL(bv) ((bv)->bv_val == NULL)
...
...
servers/slapd/globals.c
View file @
60b05c64
...
...
@@ -16,6 +16,7 @@
#include
"portable.h"
#include
<ac/string.h>
#include
"lber_pvt.h"
#include
"slap.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment