Fuss, fuss, fuss...
authorChristopher R. Hertel <crh@samba.org>
Wed, 29 Aug 2001 04:26:27 +0000 (04:26 +0000)
committerChristopher R. Hertel <crh@samba.org>
Wed, 29 Aug 2001 04:26:27 +0000 (04:26 +0000)
Function name_status_query() performs a node status query, so it really
should be called "node_status_query()" just to be consistent.

Yeah, minor... but it's looking as though an overhaul of namequery.c is in
order and I am trying to do the tiny changes that impact other stuff first.

Chris -)-----

source/libsmb/namequery.c
source/utils/nmblookup.c

index b2a7dfc7889d8df800f63cdf57a37ecb62eeee45..4a3cf43b35704d99972aeda7659381796023e55e 100644 (file)
@@ -75,7 +75,7 @@ static struct node_status *parse_node_status(char *p, int *num_names)
 do a NBT node status query on an open socket and return an array of
 structures holding the returned names or NULL if the query failed
 **************************************************************************/
-struct node_status *name_status_query(int fd,struct nmb_name *name,
+struct node_status *node_status_query(int fd,struct nmb_name *name,
                                      struct in_addr to_ip, int *num_names)
 {
        BOOL found=False;
@@ -173,7 +173,7 @@ BOOL name_status_find(int type, struct in_addr to_ip, char *name)
        if (sock == -1) return False;
 
        make_nmb_name(&nname, "*", 0);
-       status = name_status_query(sock, &nname, to_ip, &count);
+       status = node_status_query(sock, &nname, to_ip, &count);
        close(sock);
        if (!status) return False;
 
index 3e2f0610e6cb84ae96564deea60226c49f539b89..5acdf62735f527e67a3500baa1c3ce5732e8dda5 100644 (file)
@@ -113,7 +113,7 @@ static void do_node_status(int fd, char *name, int type, struct in_addr ip)
 
        printf("Looking up status of %s\n",inet_ntoa(ip));
        make_nmb_name(&nname, name, type);
-       status = name_status_query(fd,&nname,ip, &count);
+       status = node_status_query(fd,&nname,ip, &count);
        if (status) {
                for (i=0;i<count;i++) {
                        fstrcpy(cleanname, status[i].name);