lib:tevent: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 13 Apr 2023 11:18:05 +0000 (13:18 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 14 Apr 2023 05:25:33 +0000 (05:25 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
lib/tevent/doc/tevent_events.dox
lib/tevent/doc/tevent_queue.dox
lib/tevent/doxy.config
lib/tevent/testsuite.c
lib/tevent/tevent.c
lib/tevent/tevent.h
lib/tevent/tevent_threads.c

index d56af25496cf586f9ce9c2d32729d05d07d5aa99..94fed9c69c206d76d8c821d5450d383eaf331894 100644 (file)
@@ -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 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
 within foo function
 
 @code
@@ -233,7 +233,7 @@ static void handler(struct tevent_context *ev,
                     void *private_data)
 {
 
                     void *private_data)
 {
 
-    // Do something usefull
+    // Do something useful
 
     printf("handling signal...\n");
     exit(EXIT_SUCCESS);
 
     printf("handling signal...\n");
     exit(EXIT_SUCCESS);
index 9c247e5212a187ce29b7118616fb6e38a9397880..c1d629c7488b8e2ba5bddcb2af980f9fc382b3d8 100644 (file)
@@ -231,9 +231,9 @@ int main (int argc, char **argv)
     tevent_queue_stop(fronta);
     tevent_queue_start(fronta);
     if (tevent_queue_running(fronta)) {
     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 {
     } else {
-        printf ("Queue is not runnning\n");
+        printf ("Queue is not running\n");
     }
 
     data = talloc(ev, struct juststruct);
     }
 
     data = talloc(ev, struct juststruct);
index 76d8b4cb668380cb9d92fc4d4c0546a00b47632f..dbb40c567e8d1ea64bfc619a5f9533c050806aa4 100644 (file)
@@ -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
 # 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.
 
 # robust against future updates. Doxygen will copy the style sheet file to
 # the output directory.
 
index 492b88079966ae12749bfb765aa06701d5db7cac..e7583e64059ebb94c7176596060e7b0d4e5d9887 100644 (file)
@@ -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
         * 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);
         * with pending events.
         */
        talloc_free(ev);
index 698e467c88c11a8051599efc2a1232ae268da895..4142da78f607593615c3fc36b3d86ce026767cef 100644 (file)
@@ -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.
   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.
index 303918528850ab53d74a4f1a0589977ffea7390a..ba564bc0195ec7fcdb1f1795ae2cbfe822212e3e 100644 (file)
@@ -2047,7 +2047,7 @@ pid_t tevent_cached_getpid(void);
  *
  * tevent_thread_call_depth_reset_from_req(struct tevent_req *req)
  *
  *
  * 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.
  * 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
 
 /**
  * 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
  */
  *
  * @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.
  *
  *
  * 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.
  *
  * 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
  *
  * @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.
  *
  * implementation originally developed within the samba4 code and will be
  * soon removed. Please NEVER use in new code.
  *
index a89990f231a468a818189907115020980fac0b93..5ba6029fee183ec9245684279bd9f490865d44e6 100644 (file)
@@ -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.
  *
  * 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
  *
  * 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.
  *
  * If you want to return a message, have the destination use the
  * same function call to send back to the caller.