diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-08-23 02:10:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:27 -0500 |
commit | dfa4e5f78440e375a9c47eab913c5980c1aa640b (patch) | |
tree | 496a2c84d63e79db71181f9383177ca82b322588 /source4/dsdb | |
parent | 32ce9de932c3f08b728bd9c743c70d702dc68a88 (diff) | |
download | samba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.tar.gz samba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.tar.bz2 samba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.zip |
r24631: Fix up format warnings, found on my Fedora 7 x86_64 workstation.
Andrew Bartlett
(This used to be commit 3d74d178bfd89127ff387939e848b240e638cc35)
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/schema/schema_init.c | 4 | ||||
-rw-r--r-- | source4/dsdb/schema/schema_syntax.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index ce7645c454..41b53be977 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -674,7 +674,7 @@ static struct drsuapi_DsReplicaAttribute *dsdb_find_object_attr_name(struct dsdb } \ if (strict && _a->value_ctr.num_values != 1) { \ d_printf("%s: %s num_values == %u\n", __location__, attr, \ - _a->value_ctr.num_values); \ + (unsigned int)_a->value_ctr.num_values); \ return WERR_INVALID_PARAM; \ } \ if (strict && !_a->value_ctr.values[0].blob) { \ @@ -683,7 +683,7 @@ static struct drsuapi_DsReplicaAttribute *dsdb_find_object_attr_name(struct dsdb } \ if (strict && _a->value_ctr.values[0].blob->length != 4) { \ d_printf("%s: %s length == %u\n", __location__, attr, \ - _a->value_ctr.values[0].blob->length); \ + (unsigned int)_a->value_ctr.values[0].blob->length); \ return WERR_INVALID_PARAM; \ } \ if (_a && _a->value_ctr.num_values >= 1 \ diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index db34e58f71..760417b676 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -261,7 +261,7 @@ static WERROR dsdb_syntax_INT64_drsuapi_to_ldb(const struct dsdb_schema *schema, v = BVALS(in->value_ctr.values[i].blob->data, 0); - str = talloc_asprintf(out->values, "%lld", v); + str = talloc_asprintf(out->values, "%lld", (long long int)v); W_ERROR_HAVE_NO_MEMORY(str); out->values[i] = data_blob_string_const(str); @@ -948,7 +948,7 @@ static WERROR dsdb_syntax_DN_BINARY_drsuapi_to_ldb(const struct dsdb_schema *sch W_ERROR_HAVE_NO_MEMORY(binary); str = talloc_asprintf(out->values, "B:%u:%s:%s", - id3b.binary.length * 2, /* because of 2 hex chars per byte */ + (unsigned int)(id3b.binary.length * 2), /* because of 2 hex chars per byte */ binary, id3b.dn); W_ERROR_HAVE_NO_MEMORY(str); |