]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: opentracing: corrected comments in function descriptions
authorMiroslav Zagorac <mzagorac@haproxy.com>
Tue, 1 Mar 2022 18:18:34 +0000 (19:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Apr 2022 14:31:33 +0000 (16:31 +0200)
Several comments in the function descriptions have been corrected.

This patch must be backported as far as 2.4.

addons/ot/src/pool.c
addons/ot/src/vars.c

index ead53e1b8be53554e093223ffe7bd55bc246f1c0..0ee5426548ec4100b4b3c1648459e5431c54a4cd 100644 (file)
@@ -147,7 +147,7 @@ void flt_ot_pool_free(struct pool_head *pool, void **ptr)
  *   -
  *
  * RETURN VALUE
- *   This function does not return a value.
+ *   -
  */
 struct buffer *flt_ot_trash_alloc(bool flag_clear, char **err)
 {
index 33923938a4d2d44cb7c8ac289c94e6c902a897db..d67879a540ca93417a85240f15cd374c7096cdb6 100644 (file)
@@ -31,7 +31,8 @@
  *   scope -
  *
  * DESCRIPTION
- *   -
+ *   Function prints the contents of all variables defined for a particular
+ *   scope.
  *
  * RETURN VALUE
  *   This function does not return a value.
@@ -58,7 +59,8 @@ static void flt_ot_vars_scope_dump(struct vars *vars, const char *scope)
  *   s -
  *
  * DESCRIPTION
- *   -
+ *   Function prints the contents of all variables grouped by individual
+ *   scope.
  *
  * RETURN VALUE
  *   This function does not return a value.
@@ -95,7 +97,8 @@ void flt_ot_vars_dump(struct stream *s)
  *   -
  *
  * RETURN VALUE
- *   -
+ *   Returns the struct vars pointer for a stream and scope, or NULL if it does
+ *   not exist.
  */
 static inline struct vars *flt_ot_get_vars(struct stream *s, const char *scope)
 {
@@ -201,7 +204,9 @@ static int flt_ot_normalize_name(char *var_name, size_t size, int *len, const ch
  *   err      -
  *
  * DESCRIPTION
- *   -
+ *   The function initializes the value of the 'smp' structure.  If the 'data'
+ *   argument is set, then the 'sample_data' member of the 'smp' structure is
+ *   also initialized.
  *
  * RETURN VALUE
  *   -