]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fix typos in comments for contrib/spoa_example
authorJoseph Herlant <aerostitch@debian.org>
Sat, 10 Nov 2018 02:36:35 +0000 (18:36 -0800)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 07:52:54 +0000 (08:52 +0100)
Fixes 3 common typos in the comments of the contrib/spoa_example
subsystem.

contrib/spoa_example/include/mini-clist.h
contrib/spoa_example/include/spop_functions.h

index 05604563a56f648d575a9f714f1bac78bf3d64a1..a89255c46368bd140f3a8d1220fb41babfa0978a 100644 (file)
@@ -57,7 +57,7 @@ struct list {
 #define LIST_NEXT(lh, pt, el) (LIST_ELEM((lh)->n, pt, el))
 
 
-/* returns a pointer of type <pt> to a structure preceeding the element
+/* returns a pointer of type <pt> to a structure preceding the element
  * which contains list head <lh>, which is known as element <el> in
  * struct pt.
  */
index 8319e41b4dfdf8c48fdd58b86889f59b27074386..e77d38ba2635128b13029466a2508f4d8803942f 100644 (file)
@@ -124,7 +124,7 @@ spoe_encode_buffer(const char *str, size_t len, char **buf, char *end)
 /* Encode a buffer, possibly partially. It does the same thing than
  * 'spoe_encode_buffer', but if there is not enough space, it does not fail.
  * On success, it returns the number of copied bytes and <*buf> is moved after
- * the encoded value. If an error occured, it returns -1. */
+ * the encoded value. If an error occurred, it returns -1. */
 static inline int
 spoe_encode_frag_buffer(const char *str, size_t len, char **buf, char *end)
 {
@@ -176,7 +176,7 @@ spoe_decode_buffer(char **buf, char *end, char **str, uint64_t *len)
 
 /* Encode a typed data using value in <data> and type <type>. On success, it
  * returns the number of copied bytes and <*buf> is moved after the encoded
- * value. If an error occured, it returns -1.
+ * value. If an error occurred, it returns -1.
  *
  * If the value is too big to be encoded, depending on its type, then encoding
  * failed or the value is partially encoded. Only strings and binaries can be