From: Andreas Schneider Date: Thu, 13 Jul 2023 07:09:48 +0000 (+0200) Subject: s3:nmbd: Fix code spelling X-Git-Tag: talloc-2.4.1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d2c68f2e257a64b58bfa3e9fe593d27718b3cd4;p=thirdparty%2Fsamba.git s3:nmbd: Fix code spelling Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Mon Jul 17 12:41:21 UTC 2023 on atb-devel-224 --- diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index fa13b5a9326..7cdd9bd1303 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -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) */ diff --git a/source3/nmbd/nmbd_become_dmb.c b/source3/nmbd/nmbd_become_dmb.c index 8246f595524..d006a6f7548 100644 --- a/source3/nmbd/nmbd_become_dmb.c +++ b/source3/nmbd/nmbd_become_dmb.c @@ -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. */ diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c index 181787df410..68b8b958d71 100644 --- a/source3/nmbd/nmbd_browsesync.c +++ b/source3/nmbd/nmbd_browsesync.c @@ -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. */ diff --git a/source3/nmbd/nmbd_incomingdgrams.c b/source3/nmbd/nmbd_incomingdgrams.c index a6ef0666306..3e27ff5aae6 100644 --- a/source3/nmbd/nmbd_incomingdgrams.c +++ b/source3/nmbd/nmbd_incomingdgrams.c @@ -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. */ diff --git a/source3/nmbd/nmbd_incomingrequests.c b/source3/nmbd/nmbd_incomingrequests.c index b50dadf878e..6cace78799b 100644 --- a/source3/nmbd/nmbd_incomingrequests.c +++ b/source3/nmbd/nmbd_incomingrequests.c @@ -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; } diff --git a/source3/nmbd/nmbd_lmhosts.c b/source3/nmbd/nmbd_lmhosts.c index 042d0430a35..ecf70bd121a 100644 --- a/source3/nmbd/nmbd_lmhosts.c +++ b/source3/nmbd/nmbd_lmhosts.c @@ -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)) diff --git a/source3/nmbd/nmbd_logonnames.c b/source3/nmbd/nmbd_logonnames.c index bb1514fd0ef..cc4776adcc6 100644 --- a/source3/nmbd/nmbd_logonnames.c +++ b/source3/nmbd/nmbd_logonnames.c @@ -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", diff --git a/source3/nmbd/nmbd_mynames.c b/source3/nmbd/nmbd_mynames.c index b95c2e2f17d..7efeb5cbc5e 100644 --- a/source3/nmbd/nmbd_mynames.c +++ b/source3/nmbd/nmbd_mynames.c @@ -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, diff --git a/source3/nmbd/nmbd_namelistdb.c b/source3/nmbd/nmbd_namelistdb.c index 6122fd1dc73..141adfa77dc 100644 --- a/source3/nmbd/nmbd_namelistdb.c +++ b/source3/nmbd/nmbd_namelistdb.c @@ -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, diff --git a/source3/nmbd/nmbd_nameregister.c b/source3/nmbd/nmbd_nameregister.c index ab3764790cc..4b7b6c6daa8 100644 --- a/source3/nmbd/nmbd_nameregister.c +++ b/source3/nmbd/nmbd_nameregister.c @@ -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); } diff --git a/source3/nmbd/nmbd_responserecordsdb.c b/source3/nmbd/nmbd_responserecordsdb.c index 4753bbff75b..8876722dd0b 100644 --- a/source3/nmbd/nmbd_responserecordsdb.c +++ b/source3/nmbd/nmbd_responserecordsdb.c @@ -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; diff --git a/source3/nmbd/nmbd_winsproxy.c b/source3/nmbd/nmbd_winsproxy.c index 773e195ff4e..163d2c0449c 100644 --- a/source3/nmbd/nmbd_winsproxy.c +++ b/source3/nmbd/nmbd_winsproxy.c @@ -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; } diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index f68d6eebc0b..47ea7bee7e1 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/nmbd/nmbd_winsserver.c @@ -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