diff options
author | Samba Release Account <samba-bugs@samba.org> | 1996-08-17 15:47:49 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1996-08-17 15:47:49 +0000 |
commit | 18fab46a8283add58c47d3e0f109bc59b48a3a75 (patch) | |
tree | 6d7b44cff07b7d5eb3a514f4f8a3a6b72bedd974 | |
parent | db70768da6149fc5b4b894e46dab0e62dc19c681 (diff) | |
download | samba-18fab46a8283add58c47d3e0f109bc59b48a3a75.tar.gz samba-18fab46a8283add58c47d3e0f109bc59b48a3a75.tar.bz2 samba-18fab46a8283add58c47d3e0f109bc59b48a3a75.zip |
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)
-rw-r--r-- | source3/namedbname.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/namedbname.c b/source3/namedbname.c index 081c20e45b..746353dd97 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) |