From: Andreas Schneider Date: Thu, 13 Apr 2023 11:18:05 +0000 (+0200) Subject: lib:tevent: Fix code spelling X-Git-Tag: talloc-2.4.1~909 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6eed0c128ce4d42409226a48dba147a22e2acacf;p=thirdparty%2Fsamba.git lib:tevent: Fix code spelling Signed-off-by: Andreas Schneider Reviewed-by: Joseph Sutton --- diff --git a/lib/tevent/doc/tevent_events.dox b/lib/tevent/doc/tevent_events.dox index d56af25496c..94fed9c69c2 100644 --- a/lib/tevent/doc/tevent_events.dox +++ b/lib/tevent/doc/tevent_events.dox @@ -27,7 +27,7 @@ would be example, so examples describing all the types of events follow. This example shows how to set up an event which will be repeated for a minute with interval of 2 seconds (will be triggered 30 times). After exceeding this limit, the event loop will finish and all the memory resources will be freed. -This is just example describing repeated activity, nothing usefull is done +This is just example describing repeated activity, nothing useful is done within foo function @code @@ -233,7 +233,7 @@ static void handler(struct tevent_context *ev, void *private_data) { - // Do something usefull + // Do something useful printf("handling signal...\n"); exit(EXIT_SUCCESS); diff --git a/lib/tevent/doc/tevent_queue.dox b/lib/tevent/doc/tevent_queue.dox index 9c247e5212a..c1d629c7488 100644 --- a/lib/tevent/doc/tevent_queue.dox +++ b/lib/tevent/doc/tevent_queue.dox @@ -231,9 +231,9 @@ int main (int argc, char **argv) tevent_queue_stop(fronta); tevent_queue_start(fronta); if (tevent_queue_running(fronta)) { - printf ("Queue is runnning (length: %d)\n", tevent_queue_length(fronta)); + printf ("Queue is running (length: %d)\n", tevent_queue_length(fronta)); } else { - printf ("Queue is not runnning\n"); + printf ("Queue is not running\n"); } data = talloc(ev, struct juststruct); diff --git a/lib/tevent/doxy.config b/lib/tevent/doxy.config index 76d8b4cb668..dbb40c567e8 100644 --- a/lib/tevent/doxy.config +++ b/lib/tevent/doxy.config @@ -930,7 +930,7 @@ HTML_STYLESHEET = # user-defined cascading style sheet that is included after the standard # style sheets created by doxygen. Using this option one can overrule # certain style aspects. This is preferred over using HTML_STYLESHEET -# since it does not replace the standard style sheet and is therefor more +# since it does not replace the standard style sheet and is therefore more # robust against future updates. Doxygen will copy the style sheet file to # the output directory. diff --git a/lib/tevent/testsuite.c b/lib/tevent/testsuite.c index 492b8807996..e7583e64059 100644 --- a/lib/tevent/testsuite.c +++ b/lib/tevent/testsuite.c @@ -1091,7 +1091,7 @@ static void test_free_wrapper_signal_handler(struct tevent_context *ev, * signal handlers have highest priority in tevent, so this signal * handler will always be started before the other handlers * below. Freeing the (wrapper) event context here tests that the - * wrapper implementation correclty handles the wrapper ev going away + * wrapper implementation correctly handles the wrapper ev going away * with pending events. */ talloc_free(ev); diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index 698e467c88c..4142da78f60 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -518,7 +518,7 @@ void tevent_common_check_double_free(TALLOC_CTX *ptr, const char *reason) } /* - create a event_context structure for a specific implemementation. + create a event_context structure for a specific implementation. This must be the first events call, and all subsequent calls pass this event_context as the first element. Event handlers also receive this as their first argument. diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 30391852885..ba564bc0195 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -2047,7 +2047,7 @@ pid_t tevent_cached_getpid(void); * * tevent_thread_call_depth_reset_from_req(struct tevent_req *req) * - * If the call depth is used for trace indentation, it might be usefull to + * If the call depth is used for trace indentation, it might be useful to * reset the external variable to the call depth of currently processed tevent * request, since the ext. variable can be changed after return from a function * call that has created subrequests. @@ -2062,7 +2062,7 @@ pid_t tevent_cached_getpid(void); /** * Activate call depth tracking and register external variable that will - * be updated to the call epth of currenty processed tevent request. + * be updated to the call depth of currently processed tevent request. * * @param[in] ptr Address of external variable */ @@ -2820,7 +2820,7 @@ bool _tevent_context_push_use(struct tevent_context *ev, * * The wrapper event context might undo something like impersonation. * - * This must be called after a succesful tevent_context_push_use(). + * This must be called after a successful tevent_context_push_use(). * Any ordering violation results in calling * the abort handler of the given tevent context. * @@ -2872,7 +2872,7 @@ bool tevent_context_same_loop(struct tevent_context *ev1, * @defgroup tevent_compat The tevent compatibility functions * @ingroup tevent * - * The following definitions are usueful only for compatibility with the + * The following definitions are useful only for compatibility with the * implementation originally developed within the samba4 code and will be * soon removed. Please NEVER use in new code. * diff --git a/lib/tevent/tevent_threads.c b/lib/tevent/tevent_threads.c index a89990f231a..5ba6029fee1 100644 --- a/lib/tevent/tevent_threads.c +++ b/lib/tevent/tevent_threads.c @@ -302,12 +302,12 @@ struct tevent_thread_proxy *tevent_thread_proxy_create( * * pp_im must be a pointer to an immediate event talloced on * a context owned by the calling thread, or the NULL context. - * Ownership of *pp_im will be transfered to the tevent library. + * Ownership of *pp_im will be transferred to the tevent library. * * pp_private can be null, or contents of *pp_private must be * talloc'ed memory on a context owned by the calling thread * or the NULL context. If non-null, ownership of *pp_private will - * be transfered to the tevent library. + * be transferred to the tevent library. * * If you want to return a message, have the destination use the * same function call to send back to the caller.