tests: make test_func private
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 14 May 2017 11:06:40 +0000 (13:06 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 14 May 2017 11:35:22 +0000 (13:35 +0200)
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 <bartekgola@gmail.com>
tests/gpiod-test.h

index d58a4d7ab72bb8183a2ab4fa3a8059885f71986f..26f8945507f19573f0de3fba5da92c80dcffaf7b 100644 (file)
@@ -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;
 };