From b26a147f04d5454c70ef76df126101d19b35ee8a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 26 Dec 1997 10:07:05 +0000 Subject: fixed another couple of minor type errors (they could cause incorrect output but not a core dump) (This used to be commit 4dc66214a0cdf16e48cca961914fae37b3762330) --- source3/nmbd/nmbd_winsserver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index 7bb3081e10..725e6e3747 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/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])); -- cgit