From ebe14bbbef36137c4a100921cf63f4ebb05ba52e Mon Sep 17 00:00:00 2001 From: Joseph Herlant Date: Fri, 9 Nov 2018 18:36:35 -0800 Subject: [PATCH] CLEANUP: fix typos in comments for contrib/spoa_example Fixes 3 common typos in the comments of the contrib/spoa_example subsystem. --- contrib/spoa_example/include/mini-clist.h | 2 +- contrib/spoa_example/include/spop_functions.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/spoa_example/include/mini-clist.h b/contrib/spoa_example/include/mini-clist.h index 05604563a5..a89255c463 100644 --- a/contrib/spoa_example/include/mini-clist.h +++ b/contrib/spoa_example/include/mini-clist.h @@ -57,7 +57,7 @@ struct list { #define LIST_NEXT(lh, pt, el) (LIST_ELEM((lh)->n, pt, el)) -/* returns a pointer of type to a structure preceeding the element +/* returns a pointer of type to a structure preceding the element * which contains list head , which is known as element in * struct pt. */ diff --git a/contrib/spoa_example/include/spop_functions.h b/contrib/spoa_example/include/spop_functions.h index 8319e41b4d..e77d38ba26 100644 --- a/contrib/spoa_example/include/spop_functions.h +++ b/contrib/spoa_example/include/spop_functions.h @@ -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 and 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