]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:nmbd: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 13 Jul 2023 07:09:48 +0000 (09:09 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 17 Jul 2023 12:41:21 +0000 (12:41 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Jul 17 12:41:21 UTC 2023 on atb-devel-224

13 files changed:
source3/nmbd/nmbd.c
source3/nmbd/nmbd_become_dmb.c
source3/nmbd/nmbd_browsesync.c
source3/nmbd/nmbd_incomingdgrams.c
source3/nmbd/nmbd_incomingrequests.c
source3/nmbd/nmbd_lmhosts.c
source3/nmbd/nmbd_logonnames.c
source3/nmbd/nmbd_mynames.c
source3/nmbd/nmbd_namelistdb.c
source3/nmbd/nmbd_nameregister.c
source3/nmbd/nmbd_responserecordsdb.c
source3/nmbd/nmbd_winsproxy.c
source3/nmbd/nmbd_winsserver.c

index fa13b5a9326f707e62c2e1b6ddce1ba3372fdc0c..7cdd9bd1303fca12091e1c3aebb2a16596fca124 100644 (file)
@@ -569,7 +569,7 @@ static void process(struct messaging_context *msg)
                /*
                 * If we are a local master browser, periodically
                 * announce ourselves to the domain master browser.
-                * This also deals with syncronising the domain master
+                * This also deals with synchronising the domain master
                 * browser server lists with ourselves as a local
                 * master browser.
                 * (nmbd_sendannounce.c)
@@ -578,14 +578,14 @@ static void process(struct messaging_context *msg)
                announce_myself_to_domain_master_browser(t);
 
                /*
-                * Fullfill any remote announce requests.
+                * Fulfill any remote announce requests.
                 * (nmbd_sendannounce.c)
                 */
 
                announce_remote(t);
 
                /*
-                * Fullfill any remote browse sync announce requests.
+                * Fulfill any remote browse sync announce requests.
                 * (nmbd_sendannounce.c)
                 */
 
@@ -601,7 +601,7 @@ static void process(struct messaging_context *msg)
 
                /*
                 * Scan the subnet namelists and server lists and
-                * expire thos that have timed out.
+                * expire those that have timed out.
                 * (nmbd.c)
                 */
 
index 8246f59552499cd0ec17e8fdc7020aa3853f6c46..d006a6f7548724ccd2262c3605b764f7a7968f7e 100644 (file)
@@ -214,7 +214,7 @@ static void become_domain_master_query_success(struct subnet_record *subrec,
        pull_ascii_nstring(name, sizeof(name), nmbname->name);
 
        /* If the given ip is not ours, then we can't become a domain
-               controler as the name is already registered.
+               controller as the name is already registered.
        */
 
        /* BUG note. Samba 1.9.16p11 servers seem to return the broadcast
@@ -344,7 +344,7 @@ static void become_domain_master_browser_wins(const char *workgroup_name)
                        }
 
                        /* Send out a query to establish whether there's a 
-                          domain master broswer registered with WINS. If not,
+                          domain master browser registered with WINS. If not,
                           we can become a domain master browser. 
                        */
 
index 181787df41015d69b7c853f8f9405d03099d58fb..68b8b958d71633e01e30cab90dc0847d60226759 100644 (file)
@@ -274,7 +274,7 @@ static void find_domain_master_name_query_success(struct subnet_record *subrec,
         * address we do a Node status request, and look for the first
         * NAME<0x20> in the response, and take that as the server name.
         * We also keep a cache of the Domain Master Browser name for this
-        * workgroup in the Workgroup struct, so that if the same IP addess
+        * workgroup in the Workgroup struct, so that if the same IP address
         * is returned every time, we don't need to do the node status
         * request.
         */
index a6ef0666306245fffa521b62ff19dfecfed91bae..3e27ff5aae6bbb7173034a3f7f6e20d1d9cc36ca 100644 (file)
@@ -148,7 +148,7 @@ void process_host_announce(struct subnet_record *subrec, struct packet_struct *p
                unstrcpy(work_name,lp_workgroup());
 
        /*
-        * We are being very agressive here in adding a workgroup
+        * We are being very aggressive here in adding a workgroup
         * name on the basis of a host announcing itself as being
         * in that workgroup. Maybe we should wait for the workgroup
         * announce instead ? JRA.
@@ -489,7 +489,7 @@ originate from OS/2 Warp client. Ignoring packet.\n"));
                unstrcpy(work_name,lp_workgroup());
 
        /*
-        * We are being very agressive here in adding a workgroup
+        * We are being very aggressive here in adding a workgroup
         * name on the basis of a host announcing itself as being
         * in that workgroup. Maybe we should wait for the workgroup
         * announce instead ? JRA.
@@ -589,7 +589,7 @@ static void send_backup_list_response(struct subnet_record *subrec,
      workgroup. That's why this is commented out (tridge) */
 
   /*
-   * NB. Note that the struct work_record here is not neccessarily
+   * NB. Note that the struct work_record here is not necessarily
    * attached to the subnet *subrec.
    */
 
index b50dadf878eeebb1084ea505b4d561fe1ada6497..6cace78799b4d7598b1982c5a5fb8595ef6f5719 100644 (file)
@@ -494,7 +494,7 @@ void process_name_query_request(struct subnet_record *subrec, struct packet_stru
                           or it's a Domain Master type. */
 
                        /*
-                        * If this is a WINS_PROXY_NAME, then ceck that none of the IP
+                        * If this is a WINS_PROXY_NAME, then check that none of the IP
                         * addresses we are returning is on the same broadcast subnet
                         * as the requesting packet. If it is then don't reply as the
                         * actual machine will be replying also and we don't want two
@@ -504,7 +504,7 @@ void process_name_query_request(struct subnet_record *subrec, struct packet_stru
                        if (namerec->data.source == WINS_PROXY_NAME) {
                                for( i = 0; i < namerec->data.num_ips; i++) {
                                        if (same_net_v4(namerec->data.ip[i], subrec->myip, subrec->mask_ip)) {
-                                               DEBUG(5,("process_name_query_request: name %s is a WINS proxy name and is also on the same subnet (%s) as the requestor. Not replying.\n",
+                                               DEBUG(5,("process_name_query_request: name %s is a WINS proxy name and is also on the same subnet (%s) as the requester. Not replying.\n",
                                                         nmb_namestr(&namerec->name), subrec->subnet_name ));
                                                return;
                                        }
index 042d0430a35b9c3fbda43590b645224e58cfb7e6..ecf70bd121a4cff8d196d5bac8626ad586405797 100644 (file)
@@ -57,7 +57,7 @@ void load_lmhosts_file(const char *fname)
 
                ipaddr = ((struct sockaddr_in *)&ss)->sin_addr;
 
-               /* We find a relevent subnet to put this entry on, then add it. */
+               /* We find a relevant subnet to put this entry on, then add it. */
                /* Go through all the broadcast subnets and see if the mask matches. */
                for (subrec = FIRST_SUBNET; subrec ; subrec = NEXT_SUBNET_EXCLUDING_UNICAST(subrec)) {
                        if(same_net_v4(ipaddr, subrec->bcast_ip, subrec->mask_ip))
index bb1514fd0ef35ca85999eb9b14df52266ae1ebba..cc4776adcc618ba57aeee3207345764616e370d2 100644 (file)
@@ -131,7 +131,7 @@ for workgroup %s on subnet %s\n", work->work_group, subrec->subnet_name));
 static void become_logon_server(struct subnet_record *subrec,
                                 struct work_record *work)
 {
-       DEBUG(2,("become_logon_server: Atempting to become logon server for workgroup %s \
+       DEBUG(2,("become_logon_server: Attempting to become logon server for workgroup %s \
 on subnet %s\n", work->work_group,subrec->subnet_name));
 
        DEBUG(3,("become_logon_server: go to first stage: register %s<1c> name\n",
index b95c2e2f17df68b89df027df3fae75fca4b0f19d..7efeb5cbc5eda9bbba33ee69dbeedb1b83ef8aeb 100644 (file)
@@ -95,7 +95,7 @@ const char *my_netbios_names(int i)
 }
 
 /****************************************************************************
- Fail funtion when registering my netbios names.
+ Fail function when registering my netbios names.
 **************************************************************************/
 
 static void my_name_register_failed(struct subnet_record *subrec,
index 6122fd1dc732099393d676d9b6a1351c5534abe5..141adfa77dcf31b050d752af51a280cfbd9c1208 100644 (file)
@@ -306,7 +306,7 @@ void standard_success_register(struct subnet_record *subrec,
  Utility function automatically called when a name refresh or register 
  fails. Note that this is only ever called on a broadcast subnet with
  one IP address per name. This is why it can just delete the name 
- without enumerating the IP adresses. JRA.
+ without enumerating the IP addresses. JRA.
  ******************************************************************/
 
 void standard_fail_register( struct subnet_record   *subrec,
index ab3764790cccbbfe87db77cfd4966a7266046a18..4b7b6c6daa894d5f7a452cc8e7dc09f9be00169b 100644 (file)
@@ -56,7 +56,7 @@ static void register_name_response(struct subnet_record *subrec,
        fstrcpy(reg_name, inet_ntoa(register_ip));
        
        if (subrec == unicast_subnet) {
-               /* we know that this wins server is definately alive - for the moment! */
+               /* we know that this wins server is definitely alive - for the moment! */
                wins_srv_alive(rrec->packet->ip, register_ip);
        }
 
index 4753bbff75b8b026a27ef913ebedd85e5bc6a053..8876722dd0b0e95b8be131dc5aeb943229eb41ff 100644 (file)
@@ -49,7 +49,7 @@ void remove_response_record(struct subnet_record *subrec,
 {
        /* It is possible this can be called twice,
           with a rrec pointer that has been freed. So
-          before we inderect into rrec, search for it
+          before we indirect into rrec, search for it
           on the responselist first. Bug #3617. JRA. */
 
        struct response_record *p = NULL;
index 773e195ff4ee5a86982b28fe9ac91fa319ec32c5..163d2c0449c2dcd6d5c9248026f6ef16c20effb0 100644 (file)
@@ -111,7 +111,7 @@ returned for name %s.\n", nmb_namestr(nmbname) ));
                        if( same_net_v4( namerec->data.ip[i], orig_broadcast_subnet->myip,
                                        orig_broadcast_subnet->mask_ip ) ) {
                                DEBUG( 5, ( "wins_proxy_name_query_request_success: name %s is a WINS \
-proxy name and is also on the same subnet (%s) as the requestor. \
+proxy name and is also on the same subnet (%s) as the requester. \
 Not replying.\n", nmb_namestr(&namerec->name), orig_broadcast_subnet->subnet_name ) );
                                return;
                        }
index f68d6eebc0b0060d149d3ba4d17523d4bd60226a..47ea7bee7e145fc82704933dab984a045872690e 100644 (file)
@@ -1034,7 +1034,7 @@ void wins_process_name_refresh_request( struct subnet_record *subrec,
  We have a locked pointer to the original packet stashed away in the
  userdata pointer. The success here is actually a failure as it means
  the client we queried wants to keep the name, so we must return
- a registration failure to the original requestor.
+ a registration failure to the original requester.
 ************************************************************************/
 
 static void wins_register_query_success(struct subnet_record *subrec,
@@ -1079,7 +1079,7 @@ static void wins_register_query_fail(struct subnet_record *subrec,
 
        /*
         * We want to just add the name, as we now know the original owner
-        * didn't want it. But we can't just do that as an arbitary
+        * didn't want it. But we can't just do that as an arbitrary
         * amount of time may have taken place between the name query
         * request and this timeout/error response. So we check that
         * the name still exists and is in the same state - if so
@@ -1548,7 +1548,7 @@ static void wins_multihomed_register_query_success(struct subnet_record *subrec,
 
        /*
         * We want to just add the new IP, as we now know the requesting
-        * machine claims to own it. But we can't just do that as an arbitary
+        * machine claims to own it. But we can't just do that as an arbitrary
         * amount of time may have taken place between the name query
         * request and this response. So we check that
         * the name still exists and is in the same state - if so