summaryrefslogtreecommitdiff
path: root/packet_test.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-12-04 04:19:04 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-12-04 04:19:04 +0000
commit69f0986d6597b1f2d922c3169e76596f63fffcc0 (patch)
tree3acffee3b1ded5afc1f643cb55f3d1fa8ef09dcb /packet_test.c
parentf5d0f0ef600b561347f80fde2bd396ac00cf1c35 (diff)
downloadgpsd-69f0986d6597b1f2d922c3169e76596f63fffcc0.tar.gz
Change the way the RTCM decoding is layered...
...so the packet sniffer no longer needs to take an argument that is an rtcm structure. This is a step towards a new and better gpsfake. No logic or protocol changes. All regression tests pass,
Diffstat (limited to 'packet_test.c')
-rw-r--r--packet_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/packet_test.c b/packet_test.c
index 82dde9da..086ac86b 100644
--- a/packet_test.c
+++ b/packet_test.c
@@ -203,7 +203,6 @@ static struct map tests[] = {
static int packet_test(struct map *mp)
{
struct gps_packet_t packet;
- struct rtcm_t rtcm;
ssize_t st;
int failure = 0;
@@ -212,7 +211,7 @@ static int packet_test(struct map *mp)
packet.inbuflen = 0;
/*@i@*/memcpy(packet.inbufptr = packet.inbuffer, mp->test, mp->testlen);
/*@ -compdef -uniondef -usedef -formatcode @*/
- st = packet_parse(&packet, &rtcm, mp->testlen);
+ st = packet_parse(&packet, mp->testlen);
if (packet.type != mp->type)
printf("%2zi: %s test FAILED (packet type %d wrong).\n", mp-tests+1, mp->legend, packet.type);
else if (memcmp(mp->test + mp->garbage_offset, packet.outbuffer, packet.outbuflen)) {