summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/samba3sam.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-03 12:35:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:27 -0500
commit3caab0a64d5206d33f885a39fd1f0397235c579b (patch)
tree9c0b929714b0dd543bdf26e93c51df6a44d4cdfc /source4/dsdb/samdb/ldb_modules/samba3sam.c
parent48c945034c2f2b8e0eb16f1aed3eb1ae1de43e6b (diff)
downloadsamba-3caab0a64d5206d33f885a39fd1f0397235c579b.tar.gz
samba-3caab0a64d5206d33f885a39fd1f0397235c579b.tar.bz2
samba-3caab0a64d5206d33f885a39fd1f0397235c579b.zip
r9992: More fixes from the 64-bit warning police.
(This used to be commit cda829f0d9476bd8b057a7019f55fac206205825)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/samba3sam.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samba3sam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samba3sam.c b/source4/dsdb/samdb/ldb_modules/samba3sam.c
index 0ee0433071..a68f6f0640 100644
--- a/source4/dsdb/samdb/ldb_modules/samba3sam.c
+++ b/source4/dsdb/samdb/ldb_modules/samba3sam.c
@@ -157,7 +157,7 @@ static struct ldb_val lookup_gid(struct ldb_module *module, TALLOC_CTX *ctx, con
return *talloc_zero(ctx, struct ldb_val);
}
- retval.data = (uint8_t *)talloc_asprintf(ctx, "%d", pwd->pw_gid);
+ retval.data = (uint8_t *)talloc_asprintf(ctx, "%ld", (unsigned long)pwd->pw_gid);
retval.length = strlen((char *)retval.data);
return retval;
@@ -174,7 +174,7 @@ static struct ldb_val lookup_uid(struct ldb_module *module, TALLOC_CTX *ctx, con
return *talloc_zero(ctx, struct ldb_val);
}
- retval.data = (uint8_t *)talloc_asprintf(ctx, "%d", pwd->pw_uid);
+ retval.data = (uint8_t *)talloc_asprintf(ctx, "%ld", (unsigned long)pwd->pw_uid);
retval.length = strlen((char *)retval.data);
return retval;