tests: constify format strings in tap.h
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 4 Oct 2019 16:44:05 +0000 (12:44 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Oct 2019 18:14:29 +0000 (14:14 -0400)
commit1b3ea254127de2e9dee24b81e674020c661f48fe
tree37609556d08223168a3ee5a41e35ce2d0f15d6c3
parentc4232b91120e002cc33334b00769d3298a879954
tests: constify format strings in tap.h

Format strings are typically read-only data (literal strings), and they
are not modified by the functions receiving them, so it makes no sense
for them not to be const.

This helps avoid some "passing value to function foo discards const
qualifier" kind of warnings.

Change-Id: Ibaaaf5690bed21e1d541f1b676627dfd70541219
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2130
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/utils/tap/tap.c
tests/utils/tap/tap.h
This page took 0.02452 seconds and 4 git commands to generate.