summaryrefslogtreecommitdiff
path: root/test_packet.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-09-07 06:24:26 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-09-07 06:24:26 -0400
commit620f7445dcacfbb740c55a9e4b891593c3f94910 (patch)
treee092711dae9ac1af540a2e5469493f13303248c1 /test_packet.c
parent76b2aaba9575d60230387555822b18ceeb07353a (diff)
downloadgpsd-620f7445dcacfbb740c55a9e4b891593c3f94910.tar.gz
Nuke trailing whitespace in C source.
Diffstat (limited to 'test_packet.c')
-rw-r--r--test_packet.c84
1 files changed, 42 insertions, 42 deletions
diff --git a/test_packet.c b/test_packet.c
index 09ea5093..30da233f 100644
--- a/test_packet.c
+++ b/test_packet.c
@@ -86,9 +86,9 @@ static struct map singletests[] = {
{
.legend = "SiRF WAAS version ID",
.test = {
- 0xA0, 0xA2, 0x00, 0x15,
- 0x06, 0x06, 0x31, 0x2E, 0x32, 0x2E, 0x30, 0x44,
- 0x4B, 0x49, 0x54, 0x31, 0x31, 0x39, 0x20, 0x53,
+ 0xA0, 0xA2, 0x00, 0x15,
+ 0x06, 0x06, 0x31, 0x2E, 0x32, 0x2E, 0x30, 0x44,
+ 0x4B, 0x49, 0x54, 0x31, 0x31, 0x39, 0x20, 0x53,
0x4D, 0x00, 0x00, 0x00, 0x00,
0x03, 0x82, 0xB0, 0xB3},
.testlen = 29,
@@ -99,9 +99,9 @@ static struct map singletests[] = {
.legend = "SiRF WAAS version ID with 3 chars of leading garbage",
.test = {
0xff, 0x00, 0xff,
- 0xA0, 0xA2, 0x00, 0x15,
- 0x06, 0x06, 0x31, 0x2E, 0x32, 0x2E, 0x30, 0x44,
- 0x4B, 0x49, 0x54, 0x31, 0x31, 0x39, 0x20, 0x53,
+ 0xA0, 0xA2, 0x00, 0x15,
+ 0x06, 0x06, 0x31, 0x2E, 0x32, 0x2E, 0x30, 0x44,
+ 0x4B, 0x49, 0x54, 0x31, 0x31, 0x39, 0x20, 0x53,
0x4D, 0x00, 0x00, 0x00, 0x00,
0x03, 0x82, 0xB0, 0xB3},
.testlen = 32,
@@ -111,9 +111,9 @@ static struct map singletests[] = {
{
.legend = "SiRF WAAS version ID with wrong checksum",
.test = {
- 0xA0, 0xA2, 0x00, 0x15,
- 0x06, 0x06, 0x31, 0x2E, 0x32, 0x2E, 0x30, 0x44,
- 0x4B, 0x49, 0x54, 0x31, 0x31, 0x39, 0x20, 0x53,
+ 0xA0, 0xA2, 0x00, 0x15,
+ 0x06, 0x06, 0x31, 0x2E, 0x32, 0x2E, 0x30, 0x44,
+ 0x4B, 0x49, 0x54, 0x31, 0x31, 0x39, 0x20, 0x53,
0x4D, 0x00, 0x00, 0x00, 0x00,
0x03, 0x00, 0xB0, 0xB3},
.testlen = 29,
@@ -123,9 +123,9 @@ static struct map singletests[] = {
{
.legend = "SiRF WAAS version ID with bad length",
.test = {
- 0xA0, 0xA2, 0xff, 0x15,
- 0x06, 0x06, 0x31, 0x2E, 0x32, 0x2E, 0x30, 0x44,
- 0x4B, 0x49, 0x54, 0x31, 0x31, 0x39, 0x20, 0x53,
+ 0xA0, 0xA2, 0xff, 0x15,
+ 0x06, 0x06, 0x31, 0x2E, 0x32, 0x2E, 0x30, 0x44,
+ 0x4B, 0x49, 0x54, 0x31, 0x31, 0x39, 0x20, 0x53,
0x4D, 0x00, 0x00, 0x00, 0x00,
0x03, 0x82, 0xB0, 0xB3},
.testlen = 29,
@@ -136,32 +136,32 @@ static struct map singletests[] = {
{
.legend = "Zodiac binary 1000 Geodetic Status Output Message",
.test = {
- 0xff, 0x81, 0xe8, 0x03, 0x31, 0x00, 0x00, 0x00, 0xe8, 0x79,
- 0x74, 0x0e, 0x00, 0x00, 0x24, 0x00, 0x24, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x03, 0x23, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1d, 0x00, 0x06, 0x00,
- 0xcd, 0x07, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x7b, 0x0d,
- 0x00, 0x00, 0x12, 0x6b, 0xa7, 0x04, 0x41, 0x75, 0x32, 0xf8,
- 0x03, 0x1f, 0x00, 0x00, 0xe6, 0xf2, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x11, 0xf6, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x40,
- 0xd9, 0x12, 0x90, 0xd0, 0x03, 0x00, 0x00, 0xa3, 0xe1, 0x11,
- 0x10, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa3, 0xe1, 0x11,
+ 0xff, 0x81, 0xe8, 0x03, 0x31, 0x00, 0x00, 0x00, 0xe8, 0x79,
+ 0x74, 0x0e, 0x00, 0x00, 0x24, 0x00, 0x24, 0x00, 0x04, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x03, 0x23, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1d, 0x00, 0x06, 0x00,
+ 0xcd, 0x07, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x7b, 0x0d,
+ 0x00, 0x00, 0x12, 0x6b, 0xa7, 0x04, 0x41, 0x75, 0x32, 0xf8,
+ 0x03, 0x1f, 0x00, 0x00, 0xe6, 0xf2, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x11, 0xf6, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x40,
+ 0xd9, 0x12, 0x90, 0xd0, 0x03, 0x00, 0x00, 0xa3, 0xe1, 0x11,
+ 0x10, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa3, 0xe1, 0x11,
0x00, 0x00, 0x00, 0x00, 0xe0, 0x93, 0x04, 0x00, 0x04, 0xaa},
.testlen = 110,
.garbage_offset = 0,
.type = ZODIAC_PACKET,
},
- /* EverMore tests */
+ /* EverMore tests */
{
- .legend = "EverMore status packet 0x20",
- .test = {
+ .legend = "EverMore status packet 0x20",
+ .test = {
0x10, 0x02, 0x0D, 0x20, 0xE1, 0x00, 0x00, 0x00,
0x0A, 0x00, 0x1E, 0x00, 0x32, 0x00, 0x5b, 0x10,
- 0x03},
+ 0x03},
.testlen = 17,
.garbage_offset = 0,
- .type = EVERMORE_PACKET,
- },
+ .type = EVERMORE_PACKET,
+ },
{
.legend = "EverMore packet 0x04 with 0x10 0x10 sequence",
.test = {
@@ -170,7 +170,7 @@ static struct map singletests[] = {
0x00, 0x68, 0x10, 0x03},
.testlen = 20,
.garbage_offset = 0,
- .type = EVERMORE_PACKET,
+ .type = EVERMORE_PACKET,
},
{
.legend = "EverMore packet 0x04 with 0x10 0x10 sequence, some noise before packet data",
@@ -179,8 +179,8 @@ static struct map singletests[] = {
0x00, 0x10, 0x10, 0xa7, 0x13, 0x03, 0x2c, 0x26,
0x24, 0x0a, 0x17, 0x00, 0x68, 0x10, 0x03},
.testlen = 23,
- .garbage_offset = 3,
- .type = EVERMORE_PACKET,
+ .garbage_offset = 3,
+ .type = EVERMORE_PACKET,
},
{
.legend = "EverMore packet 0x04, 0x10 and some other data at the beginning",
@@ -190,8 +190,8 @@ static struct map singletests[] = {
0x2c, 0x26, 0x24, 0x0a, 0x17, 0x00, 0x68, 0x10,
0x03},
.testlen = 25,
- .garbage_offset = 5,
- .type = EVERMORE_PACKET,
+ .garbage_offset = 5,
+ .type = EVERMORE_PACKET,
},
{
.legend = "EverMore packet 0x04, 0x10 three times at the beginning",
@@ -202,7 +202,7 @@ static struct map singletests[] = {
0x00, 0x68, 0x10, 0x03},
.testlen = 23,
.garbage_offset = 3,
- .type = EVERMORE_PACKET,
+ .type = EVERMORE_PACKET,
},
{
/* from page 4-3 of RTCM 10403.1 */
@@ -215,32 +215,32 @@ static struct map singletests[] = {
* ARP ECEF-Z = 3975521.4643 meters
*/
.test = {
- 0xD3, 0x00, 0x13, 0x3E, 0xD7, 0xD3, 0x02, 0x02,
+ 0xD3, 0x00, 0x13, 0x3E, 0xD7, 0xD3, 0x02, 0x02,
0x98, 0x0E, 0xDE, 0xEF, 0x34, 0xB4, 0xBD, 0x62,
- 0xAC, 0x09, 0x41, 0x98, 0x6F, 0x33, 0x36, 0x0B,
+ 0xAC, 0x09, 0x41, 0x98, 0x6F, 0x33, 0x36, 0x0B,
0x98,
},
.testlen = 25,
.garbage_offset = 0,
- .type = RTCM3_PACKET,
+ .type = RTCM3_PACKET,
},
{
.legend = "RTCM104V3 type 1005 packet with 4th byte garbled",
.test = {
- 0xD3, 0x00, 0x13, 0x3F, 0xD7, 0xD3, 0x02, 0x02,
+ 0xD3, 0x00, 0x13, 0x3F, 0xD7, 0xD3, 0x02, 0x02,
0x98, 0x0E, 0xDE, 0xEF, 0x34, 0xB4, 0xBD, 0x62,
- 0xAC, 0x09, 0x41, 0x98, 0x6F, 0x33, 0x36, 0x0B,
+ 0xAC, 0x09, 0x41, 0x98, 0x6F, 0x33, 0x36, 0x0B,
0x98,
},
.testlen = 25,
.garbage_offset = 0,
- .type = BAD_PACKET,
+ .type = BAD_PACKET,
},
{
/* from page 3-71 of the RTCM 10403.1 */
.legend = "RTCM104V3 type 1029 packet",
.test = {
- 0xD3, 0x00, 0x27, 0x40, 0x50, 0x17, 0x00, 0x84,
+ 0xD3, 0x00, 0x27, 0x40, 0x50, 0x17, 0x00, 0x84,
0x73, 0x6E, 0x15, 0x1E, 0x55, 0x54, 0x46, 0x2D,
0x38, 0x20, 0xD0, 0xBF, 0xD1, 0x80, 0xD0, 0xBE,
0xD0, 0xB2, 0xD0, 0xB5, 0xD1, 0x80, 0xD0, 0xBA,
@@ -249,7 +249,7 @@ static struct map singletests[] = {
},
.testlen = 45,
.garbage_offset = 0,
- .type = RTCM3_PACKET,
+ .type = RTCM3_PACKET,
},
};
/*@ +initallelements -charint +usedef @*/