diff options
author | Tim Potter <tpot@samba.org> | 2004-07-07 01:02:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:54 -0500 |
commit | 34ca729f733d9d22fc789a5fce6c448b03c96545 (patch) | |
tree | ada36cb103aadc3d3999de2a8124d5cba92b1a45 /source4/lib/ldb/common/ldb_ldif.c | |
parent | e59e82b90204107a3b6e2e6e3fc52d48634adc7a (diff) | |
download | samba-34ca729f733d9d22fc789a5fce6c448b03c96545.tar.gz samba-34ca729f733d9d22fc789a5fce6c448b03c96545.tar.bz2 samba-34ca729f733d9d22fc789a5fce6c448b03c96545.zip |
r1374: Fix signed/unsigned warnings (actually found by g++) after unsigned int
changes in r1018.
(This used to be commit 45b4016530fc0bfa13146f73a503866b5dbed517)
Diffstat (limited to 'source4/lib/ldb/common/ldb_ldif.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_ldif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/common/ldb_ldif.c b/source4/lib/ldb/common/ldb_ldif.c index b08c616a05..8c912f76d4 100644 --- a/source4/lib/ldb/common/ldb_ldif.c +++ b/source4/lib/ldb/common/ldb_ldif.c @@ -122,7 +122,7 @@ char *ldb_base64_encode(struct ldb_context *ldb, const char *buf, int len) */ int ldb_should_b64_encode(const struct ldb_val *val) { - int i; + unsigned int i; uint8_t *p = val->data; if (val->length == 0 || p[0] == ' ' || p[0] == ':') { @@ -146,7 +146,7 @@ int ldb_should_b64_encode(const struct ldb_val *val) static int fold_string(int (*fprintf_fn)(void *, const char *, ...), void *private_data, const char *buf, size_t length, int start_pos) { - int i; + unsigned int i; int total=0, ret; for (i=0;i<length;i++) { @@ -201,7 +201,7 @@ int ldb_ldif_write(struct ldb_context *ldb, void *private_data, const struct ldb_ldif *ldif) { - int i, j; + unsigned int i, j; int total=0, ret; const struct ldb_message *msg; @@ -410,7 +410,7 @@ static int next_attr(char **s, const char **attr, struct ldb_val *value) void ldb_ldif_read_free(struct ldb_context *ldb, struct ldb_ldif *ldif) { struct ldb_message *msg = &ldif->msg; - int i; + unsigned int i; for (i=0;i<msg->num_elements;i++) { if (msg->elements[i].name) ldb_free(ldb, msg->elements[i].name); if (msg->elements[i].values) ldb_free(ldb, msg->elements[i].values); |