From: Samba Release Account Date: Sat, 17 Aug 1996 15:47:49 +0000 (+0000) Subject: i wondered why there was a cvs clash on namedbname.c X-Git-Tag: samba-4.0.0alpha6~801^2~23394 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=18fab46a8283add58c47d3e0f109bc59b48a3a75 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 (This used to be commit bb57170695a3582c3a1c5a89044a67ac79134d14) --- diff --git a/source3/namedbname.c b/source3/namedbname.c index 081c20e45b2..746353dd976 100644 --- a/source3/namedbname.c +++ b/source3/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)