projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a94bf
)
tests: make test_func private
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Sun, 14 May 2017 11:06:40 +0000
(13:06 +0200)
committer
Bartosz 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
patch
|
blob
|
history
diff --git
a/tests/gpiod-test.h
b/tests/gpiod-test.h
index d58a4d7ab72bb8183a2ab4fa3a8059885f71986f..26f8945507f19573f0de3fba5da92c80dcffaf7b 100644
(file)
--- 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;
};