git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/test: fix strict aliasing with gcc 4.4
[dpdk.git]
/
app
/
test
/
test_byteorder.c
diff --git
a/app/test/test_byteorder.c
b/app/test/test_byteorder.c
index
38f8d39
..
a088489
100644
(file)
--- a/
app/test/test_byteorder.c
+++ b/
app/test/test_byteorder.c
@@
-52,7
+52,7
@@
static volatile uint64_t u64 = 0xdeadcafebabefaceULL;
* size (16, 32, 64 bits)
*/
* size (16, 32, 64 bits)
*/
-int
+
static
int
test_byteorder(void)
{
uint16_t res_u16;
test_byteorder(void)
{
uint16_t res_u16;
@@
-91,3
+91,9
@@
test_byteorder(void)
return 0;
}
return 0;
}
+
+static struct test_command byteorder_cmd = {
+ .command = "byteorder_autotest",
+ .callback = test_byteorder,
+};
+REGISTER_TEST_COMMAND(byteorder_cmd);