i wondered why there was a cvs clash on namedbname.c
authorSamba Release Account <samba-bugs@samba.org>
Sat, 17 Aug 1996 15:47:49 +0000 (15:47 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Sat, 17 Aug 1996 15:47:49 +0000 (15:47 +0000)
- 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)

source3/namedbname.c

index 081c20e45b2e755dfc0aec15c4c7a66e147e0463..746353dd97648a820cd5932e1056d8a37055cc0d 100644 (file)
@@ -247,22 +247,18 @@ void dump_names(void)
 
       if (f && ip_equal(d->bcast_ip, ipgrp) && n->source == REGISTER)
       {
 
       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 :-) */
 
       /* 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);
               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++)
         {
 
         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);
                                                inet_ntoa(n->ip_flgs[i].ip),
                                                n->ip_flgs[i].nb_flags);
-                  fprintf(f, "%s", data);
         }
                fprintf(f, "\n");
       }
         }
                fprintf(f, "\n");
       }
@@ -540,7 +536,7 @@ struct name_record *search_for_name(struct subnet_record **d,
   if (!n)
     {
       struct in_addr dns_ip;
   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)
       
       /* only do DNS lookups if the query is for type 0x20 or type 0x0 */
       if (!dns_type && name_type != 0x1b)