summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-26 10:07:05 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-26 10:07:05 +0000
commit4dc66214a0cdf16e48cca961914fae37b3762330 (patch)
tree1e1a6ceeb4c572157147b1eabcccaeb188cdcb0e /source
parent6ea907e78672558d470e9a819982940a9228e2fa (diff)
downloadsamba-4dc66214a0cdf16e48cca961914fae37b3762330.tar.gz
samba-4dc66214a0cdf16e48cca961914fae37b3762330.tar.xz
samba-4dc66214a0cdf16e48cca961914fae37b3762330.zip
fixed another couple of minor type errors (they could cause incorrect
output but not a core dump)
Diffstat (limited to 'source')
-rw-r--r--source/nmbd/nmbd_winsserver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/nmbd/nmbd_winsserver.c b/source/nmbd/nmbd_winsserver.c
index 7bb3081e103..725e6e3747a 100644
--- a/source/nmbd/nmbd_winsserver.c
+++ b/source/nmbd/nmbd_winsserver.c
@@ -282,7 +282,7 @@ BOOL initialise_wins(void)
}
else
{
- DEBUG(4, ("initialise_wins: not adding name (ttl problem) %s#%02x ttl = %ld first IP %s flags = %2x\n",
+ DEBUG(4, ("initialise_wins: not adding name (ttl problem) %s#%02x ttl = %d first IP %s flags = %2x\n",
name, type, ttl, inet_ntoa(ip_list[0]), nb_flags));
}
@@ -1549,9 +1549,9 @@ void wins_write_database(void)
if (namerec->source == REGISTER_NAME)
{
- fprintf(fp, "%s#%02x %ld ",
- namerec->name.name,namerec->name.name_type, /* Ignore scope. */
- namerec->death_time);
+ fprintf(fp, "%s#%02x %d ",
+ namerec->name.name,namerec->name.name_type, /* Ignore scope. */
+ (int)namerec->death_time);
for (i = 0; i < namerec->num_ips; i++)
fprintf(fp, "%s ", inet_ntoa(namerec->ip[i]));