From: Joseph Sutton Date: Wed, 4 Oct 2023 06:03:39 +0000 (+1300) Subject: s3:rpc_server: Fix code spelling X-Git-Tag: talloc-2.4.2~1062 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5af0e1e674d4d04801389cfda665a16550e405b;p=thirdparty%2Fsamba.git s3:rpc_server: Fix code spelling Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/rpc_server/mdssvc/es_mapping.c b/source3/rpc_server/mdssvc/es_mapping.c index 57d227adcf6..e8d181daae1 100644 --- a/source3/rpc_server/mdssvc/es_mapping.c +++ b/source3/rpc_server/mdssvc/es_mapping.c @@ -66,7 +66,7 @@ * Special cases: * x y It's not possible to search for terms including spaces, Spotlight * will search for x OR y. - * x(x Search for terms including ( and ) doesn not work with Spotlight. + * x(x Search for terms including ( and ) does not work with Spotlight. * * [1] */ diff --git a/source3/rpc_server/rpc_host.c b/source3/rpc_server/rpc_host.c index ab9ad33c562..337076b5063 100644 --- a/source3/rpc_server/rpc_host.c +++ b/source3/rpc_server/rpc_host.c @@ -1280,7 +1280,7 @@ static struct rpc_work_process *rpc_host_find_idle_worker( */ if (num_workers >= UINT16_MAX) { /* - * The worker index would not fix into 16-bits + * The worker index would not fit into 16-bits */ return NULL; } diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index a220964070a..16b8b41f87c 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -763,7 +763,7 @@ static WERROR open_printer_hnd(struct pipes_struct *p, } /*************************************************************************** - check to see if the client motify handle is monitoring the notification + check to see if the client notify handle is monitoring the notification given by (notify_type, notify_field). **************************************************************************/ @@ -1100,7 +1100,7 @@ static void construct_info_data(struct spoolss_Notify *info_data, uint16_t field, int id); /*********************************************************************** - Send a change notifation message on all handles which have a call + Send a change notification message on all handles which have a call back registered **********************************************************************/ @@ -2177,7 +2177,7 @@ static WERROR spoolss_dpd_version(TALLOC_CTX *mem_ctx, /* * now delete any associated files if delete_files is * true. Even if this part fails, we return success - * because the driver doesn not exist any more + * because the driver does not exist any more */ if (delete_files) { delete_driver_files(session_info, info); @@ -3494,7 +3494,7 @@ static bool construct_notify_jobs_info(struct messaging_context *msg_ctx, struct spoolss_Notify, info->count + 1); if (info->notifies == NULL) { - DEBUG(2,("construct_notify_jobs_info: failed to enlarg buffer info->data!\n")); + DEBUG(2,("construct_notify_jobs_info: failed to enlarge buffer info->data!\n")); return false; } @@ -5796,7 +5796,7 @@ static WERROR construct_printer_driver_info_level(TALLOC_CTX *mem_ctx, } /* these are allocated on mem_ctx and not tmp_ctx because they are - * the 'return value' and need to utlive this call */ + * the 'return value' and need to outlive this call */ switch (level) { case 1: result = fill_printer_driver_info1(mem_ctx, &r->info1, driver, servername); @@ -8255,7 +8255,7 @@ static WERROR fill_port_2(TALLOC_CTX *mem_ctx, /**************************************************************************** - wrapper around the enumer ports command + wrapper around the enum ports command ****************************************************************************/ static WERROR enumports_hook(TALLOC_CTX *ctx, int *count, char ***lines) @@ -8732,7 +8732,7 @@ WERROR _spoolss_AddPrinterDriverEx(struct pipes_struct *p, } /* - * I think this is where he DrvUpgradePrinter() hook would be + * I think this is where the DrvUpgradePrinter() hook would be * be called in a driver's interface DLL on a Windows NT 4.0/2k * server. Right now, we just need to send ourselves a message * to update each printer bound to this driver. --jerry @@ -9313,7 +9313,7 @@ WERROR _spoolss_SetForm(struct pipes_struct *p, if ((session_info->unix_token->uid != sec_initial_uid()) && !security_token_has_privilege(session_info->security_token, SEC_PRIV_PRINT_OPERATOR)) { - DEBUG(2,("_spoolss_Setform: denied by insufficient permissions.\n")); + DEBUG(2,("_spoolss_SetForm: denied by insufficient permissions.\n")); return WERR_ACCESS_DENIED; } @@ -10119,7 +10119,7 @@ WERROR _spoolss_SetPrinterDataEx(struct pipes_struct *p, /* * Access check : NT returns "access denied" if you make a - * SetPrinterData call without the necessary privildge. + * SetPrinterData call without the necessary privilege. * we were originally returning OK if nothing changed * which made Win2k issue **a lot** of SetPrinterData * when connecting to a printer --jerry