From 0fc40743de99f6d8d11c6b42da043569f8c8b3ae Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sun, 14 May 2017 13:06:40 +0200 Subject: [PATCH] tests: make test_func private The test callback prototype should not be used by the test code, so prefix it with an underscore to indicate that. Signed-off-by: Bartosz Golaszewski --- tests/gpiod-test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gpiod-test.h b/tests/gpiod-test.h index d58a4d7..26f8945 100644 --- a/tests/gpiod-test.h +++ b/tests/gpiod-test.h @@ -23,7 +23,7 @@ #define TEST_ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) -typedef void (*test_func)(void); +typedef void (*_test_func)(void); struct _test_chip_descr { unsigned int num_chips; @@ -35,7 +35,7 @@ struct _test_case { struct _test_case *_next; const char *name; - test_func func; + _test_func func; struct _test_chip_descr chip_descr; }; -- 2.30.2