]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: assorted typo fixes in the code and comments
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 22 Apr 2023 18:20:39 +0000 (20:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Apr 2023 07:44:53 +0000 (09:44 +0200)
This is 36th iteration of typo fixes

doc/lua-api/index.rst
include/haproxy/stconn-t.h
src/hlua.c
src/hlua_fcn.c

index f7b453e7314b1669d7f3ff15cd0613fefd67d583..66d5da67fdd2515f50d7c760cdfb7d18f7249ac9 100644 (file)
@@ -1338,7 +1338,7 @@ Server class
   care about a single server, and also prevents useless wakeups.
 
   For instance, if you want to be notified for UP/DOWN events on a given set of
-  servers, it is recommended to peform multiple per-server subscriptions since
+  servers, it is recommended to perform multiple per-server subscriptions since
   it will be more efficient that doing a single global subscription that will
   filter the received events.
   Unless you really want to be notified for servers events of ALL servers of
index dd76a9422926bc3b5cda20451f579b26921be5ef..fe10950b6ce4f61c0a4f37836b8ce6e1f900d3ec 100644 (file)
@@ -153,7 +153,7 @@ enum sc_flags {
        SC_FL_NEED_BUFF     = 0x00000100,  /* SC waits for an rx buffer allocation to complete */
        SC_FL_NEED_ROOM     = 0x00000200,  /* SC needs more room in the rx buffer to store incoming data */
 
-       SC_FL_RCV_ONCE      = 0x00000400,  /* Don't loop to receive data. cleared after a sucessful receive */
+       SC_FL_RCV_ONCE      = 0x00000400,  /* Don't loop to receive data. cleared after a successful receive */
        SC_FL_SND_ASAP      = 0x00000800,  /* Don't wait for sending. cleared when all data were sent */
        SC_FL_SND_NEVERWAIT = 0x00001000,  /* Never wait for sending (permanent) */
        SC_FL_SND_EXP_MORE  = 0x00001000,  /* More data expected to be sent very soon. cleared when all data were sent */
index a758f627f143de866c2f053f80d78732577a1380..b14ac838f84e3f27aa896a252c8958037899ac17 100644 (file)
@@ -9113,7 +9113,7 @@ static struct task *hlua_event_runner(struct task *task, void *context, unsigned
 
                /* We reached the limit of pending events in the queue: we should
                 * warn the user, and temporarily pause the subscription to give a chance
-                * to the handler to catch up? (it also prevents ressource shortage since
+                * to the handler to catch up? (it also prevents resource shortage since
                 * the queue could grow indefinitely otherwise)
                 * TODO: find a way to inform the handler that it missed some events
                 * (example: stats within the subscription in event_hdl api exposed via lua api?)
@@ -9176,7 +9176,7 @@ static struct task *hlua_event_runner(struct task *task, void *context, unsigned
                RESET_SAFE_LJMP(hlua_sub->hlua);
 
                /* At this point the event was successfully translated into hlua ctx,
-                * or hlua error occured, so we can safely discard it
+                * or hlua error occurred, so we can safely discard it
                 */
                event_hdl_async_free_event(event);
                event = NULL;
@@ -9199,7 +9199,7 @@ static struct task *hlua_event_runner(struct task *task, void *context, unsigned
                        task_wakeup(task, TASK_WOKEN_OTHER);
                }
                else if (hlua_sub->paused) {
-                       /* empty queue, the handler catched up: resume the subscription */
+                       /* empty queue, the handler caught up: resume the subscription */
                        event_hdl_resume(hlua_sub->sub);
                        hlua_sub->paused = 0;
                }
@@ -9307,7 +9307,7 @@ __LJMP static struct event_hdl_sub_type hlua_check_event_sub_types(lua_State *L,
 /* Wrapper for hlua_fcn_new_event_sub(): catch errors raised by
  * the function to prevent LJMP
  *
- * If no error occured, the function returns 1, else it returns 0 and
+ * If no error occurred, the function returns 1, else it returns 0 and
  * the error message is pushed at the top of the stack
  */
 __LJMP static int _hlua_new_event_sub_safe(lua_State *L)
@@ -9327,7 +9327,7 @@ static int hlua_new_event_sub_safe(lua_State *L, struct event_hdl_sub *sub)
                case LUA_OK:
                        return 1;
                default:
-                       /* error was catched */
+                       /* error was caught */
                        return 0;
        }
 }
index f275c54342a46aa54824e8b09175751a6384a86b..188fcf4fdb2222da5dda288dc77ce25f24632663 100644 (file)
@@ -1023,7 +1023,7 @@ int hlua_server_get_name(lua_State *L)
 }
 
 /* __index metamethod for server class
- * support for additionnal keys that are missing from the main table
+ * support for additional keys that are missing from the main table
  * stack:1 = table (server class), stack:2 = requested key
  * Returns 1 if key is supported
  * else returns 0 to make lua return NIL value to the caller
@@ -1567,7 +1567,7 @@ int hlua_proxy_get_uuid(lua_State *L)
 }
 
 /* __index metamethod for proxy class
- * support for additionnal keys that are missing from the main table
+ * support for additional keys that are missing from the main table
  * stack:1 = table (proxy class), stack:2 = requested key
  * Returns 1 if key is supported
  * else returns 0 to make lua return NIL value to the caller