aboutsummaryrefslogtreecommitdiff
path: root/tests/testdata.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-10-18 16:59:43 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-10-26 09:25:14 +0200
commit3b62fdaebfe577566ff2387eb1c55344a7f55982 (patch)
tree8b7ff2c661b7b8de1735072afa1ff8deaccedc46 /tests/testdata.h
parent2d45d1c5c65e9b3cd020fac624ed9bf6c2855a91 (diff)
downloaddtc-3b62fdaebfe577566ff2387eb1c55344a7f55982.zip
dtc-3b62fdaebfe577566ff2387eb1c55344a7f55982.tar.gz
dtc-3b62fdaebfe577566ff2387eb1c55344a7f55982.tar.bz2
Remove leading underscores from identifiers
In a number of places, dtc and associated tools and test code use leading _ characters on identifiers to flag them as "internal", an idiom taken from the Linux kernel. This is a bad idea in a userspace program, because identifiers with a leading _ are reserved for the C library / system. In some cases, the extra _ served no real purpose, so simply drop it. In others move to the end of the identifier, which is a convention we're free to use for our own purposes. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/testdata.h')
-rw-r--r--tests/testdata.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testdata.h b/tests/testdata.h
index f6bbe1d..c30f0c8 100644
--- a/tests/testdata.h
+++ b/tests/testdata.h
@@ -41,10 +41,10 @@
#define TEST_CHAR5 '\xff'
#ifndef __ASSEMBLY__
-extern struct fdt_header _test_tree1;
-extern struct fdt_header _truncated_property;
-extern struct fdt_header _bad_node_char;
-extern struct fdt_header _bad_node_format;
-extern struct fdt_header _bad_prop_char;
-extern struct fdt_header _ovf_size_strings;
+extern struct fdt_header test_tree1;
+extern struct fdt_header truncated_property;
+extern struct fdt_header bad_node_char;
+extern struct fdt_header bad_node_format;
+extern struct fdt_header bad_prop_char;
+extern struct fdt_header ovf_size_strings;
#endif /* ! __ASSEMBLY */