summaryrefslogtreecommitdiff
path: root/source4/nbt_server
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-11-30 02:08:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:52 -0500
commit03d301ead5f702872b8cb948b8cd01b0fa0db5f7 (patch)
treebfecef5d67424c708c0122b591458328f6138ce1 /source4/nbt_server
parentad02b0bee4c8554499e02e93903e64d599c11475 (diff)
downloadsamba-03d301ead5f702872b8cb948b8cd01b0fa0db5f7.tar.gz
samba-03d301ead5f702872b8cb948b8cd01b0fa0db5f7.tar.bz2
samba-03d301ead5f702872b8cb948b8cd01b0fa0db5f7.zip
r11967: Fix more 64-bit warnings.
(This used to be commit 9c4436a124f874ae240feaf590141d48c33a635f)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r--source4/nbt_server/wins/winsdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c
index 7916d139bb..bcec8da213 100644
--- a/source4/nbt_server/wins/winsdb.c
+++ b/source4/nbt_server/wins/winsdb.c
@@ -71,7 +71,7 @@ static uint64_t winsdb_allocate_version(struct ldb_context *wins_db)
if (ret != 0) goto failed;
ret = ldb_msg_add_empty(msg, "maxVersion", LDB_FLAG_MOD_REPLACE);
if (ret != 0) goto failed;
- ret = ldb_msg_add_fmt(msg, "maxVersion", "%llu", maxVersion);
+ ret = ldb_msg_add_fmt(msg, "maxVersion", "%llu", (long long)maxVersion);
if (ret != 0) goto failed;
ret = ldb_modify(wins_db, msg);
@@ -539,7 +539,7 @@ struct ldb_message *winsdb_message(struct ldb_context *ldb,
ret |= ldb_msg_add_fmt(msg, "isStatic", "%u", rec->is_static);
ret |= ldb_msg_add_string(msg, "expireTime",
ldb_timestring(msg, rec->expire_time));
- ret |= ldb_msg_add_fmt(msg, "versionID", "%llu", rec->version);
+ ret |= ldb_msg_add_fmt(msg, "versionID", "%llu", (long long)rec->version);
ret |= ldb_msg_add_string(msg, "winsOwner", rec->wins_owner);
ret |= ldb_msg_add_empty(msg, "address", 0);
for (i=0;rec->addresses[i];i++) {