summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-08-17 15:47:49 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-08-17 15:47:49 +0000
commitbb57170695a3582c3a1c5a89044a67ac79134d14 (patch)
tree74b5552396f6b222dd491fcdd9dfefb26b01ad9a
parent6e87add16f116e55880657c7723442ece35f79da (diff)
downloadsamba-bb57170695a3582c3a1c5a89044a67ac79134d14.tar.gz
i wondered why there was a cvs clash on namedbname.c
- redid tridge's fprintf for storing wins.dat, and yet again removed the unsigned long changing it to a unint32. lkcl
-rw-r--r--source/namedbname.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/namedbname.c b/source/namedbname.c
index 081c20e45b2..746353dd976 100644
--- a/source/namedbname.c
+++ b/source/namedbname.c
@@ -247,22 +247,18 @@ void dump_names(void)
if (f && ip_equal(d->bcast_ip, ipgrp) && n->source == REGISTER)
{
- fstring data;
-
/* XXXX i have little imagination as to how to output nb_flags as
anything other than as a hexadecimal number :-) */
- sprintf(data, "%s#%02x %ld ",
+ fprintf(f, "%s#%02x %ld ",
n->name.name,n->name.name_type, /* XXXX ignore scope for now */
n->death_time);
- fprintf(f, "%s", data);
for (i = 0; i < n->num_ips; i++)
{
- sprintf(data, "%s %2x ",
+ fprintf(f, "%s %2x ",
inet_ntoa(n->ip_flgs[i].ip),
n->ip_flgs[i].nb_flags);
- fprintf(f, "%s", data);
}
fprintf(f, "\n");
}
@@ -540,7 +536,7 @@ struct name_record *search_for_name(struct subnet_record **d,
if (!n)
{
struct in_addr dns_ip;
- unsigned long a;
+ uint32 a;
/* only do DNS lookups if the query is for type 0x20 or type 0x0 */
if (!dns_type && name_type != 0x1b)