diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-01-12 21:44:53 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-01-12 21:44:53 +0000 |
commit | 2f36e4ecd0f0c04781c752e5382906a43feaf4e3 (patch) | |
tree | 27f6eba9c66c680c931ce0562e2586cc9a3c07de /tests/tests.h | |
parent | f059bd1ebfc4cf2e96c4639ad7fa6cf3a3198a2f (diff) |
Notes
Diffstat (limited to 'tests/tests.h')
-rw-r--r-- | tests/tests.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tests.h b/tests/tests.h index 56a843cd25d8a..df38b773cc374 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -1,5 +1,5 @@ -#ifndef _TESTS_H -#define _TESTS_H +#ifndef TESTS_H +#define TESTS_H /* * libfdt - Flat Device Tree manipulation * Testcase definitions @@ -99,7 +99,7 @@ void check_property(void *fdt, int nodeoffset, const char *name, int len, const void *val); #define check_property_cell(fdt, nodeoffset, name, val) \ ({ \ - uint32_t x = cpu_to_fdt32(val); \ + fdt32_t x = cpu_to_fdt32(val); \ check_property(fdt, nodeoffset, name, sizeof(x), &x); \ }) @@ -108,12 +108,12 @@ const void *check_getprop(void *fdt, int nodeoffset, const char *name, int len, const void *val); #define check_getprop_cell(fdt, nodeoffset, name, val) \ ({ \ - uint32_t x = cpu_to_fdt32(val); \ + fdt32_t x = cpu_to_fdt32(val); \ check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \ }) #define check_getprop_64(fdt, nodeoffset, name, val) \ ({ \ - uint64_t x = cpu_to_fdt64(val); \ + fdt64_t x = cpu_to_fdt64(val); \ check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \ }) #define check_getprop_string(fdt, nodeoffset, name, s) \ @@ -126,4 +126,4 @@ void *open_blob_rw(void *blob); #include "util.h" -#endif /* _TESTS_H */ +#endif /* TESTS_H */ |