diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-06-22 14:48:33 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-09-11 17:33:08 +0200 |
commit | 80f6932e3ef4cfc25b6ed717ba2f499314ec5226 (patch) | |
tree | 43a06e4145b161f399ec7ba7449e32c9f6a16386 /lib | |
parent | e3213bb4d0d6b1492e41a3b79f2e211493410d8c (diff) | |
download | samba-80f6932e3ef4cfc25b6ed717ba2f499314ec5226.tar.gz samba-80f6932e3ef4cfc25b6ed717ba2f499314ec5226.tar.bz2 samba-80f6932e3ef4cfc25b6ed717ba2f499314ec5226.zip |
ldb:ldb_controls.c - remove duplicate definition of "LDB_CONTROL_CMP"
And fix the comment
Reviewed-by: Jelmer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/common/ldb_controls.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/ldb/common/ldb_controls.c b/lib/ldb/common/ldb_controls.c index 81f3c7a5b1..3856167835 100644 --- a/lib/ldb/common/ldb_controls.c +++ b/lib/ldb/common/ldb_controls.c @@ -389,9 +389,9 @@ char *ldb_control_to_string(TALLOC_CTX *mem_ctx, const struct ldb_control *contr /* * A little trick to allow to use constants defined in headers rather than - * hardwritten in the file hardwritten in the file - * sizeof will return the \0 char as well so it will take the place of ":" in the - * length of the string + * hardwritten in the file. + * "sizeof" will return the \0 char as well so it will take the place of ":" + * in the length of the string. */ #define LDB_CONTROL_CMP(control, NAME) strncmp(control, NAME ":", sizeof(NAME)) @@ -1000,14 +1000,6 @@ struct ldb_control *ldb_parse_control_from_string(struct ldb_context *ldb, TALLO return NULL; } -/* - * A little trick to allow to use constants defined in headers rather than - * hardwritten in the file hardwritten in the file - * sizeof will return the \0 char as well so it will take the place of ":" in the - * length of the string - */ -#define LDB_CONTROL_CMP(control, NAME) strncmp(control, NAME ":", sizeof(NAME)) - /* Parse controls from the format used on the command line and in ejs */ struct ldb_control **ldb_parse_control_strings(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, const char **control_strings) { |