diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-31 19:19:24 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-31 19:19:24 -0400 |
commit | 2a27bea64b936dffe687ed38f210dddc3ccfc681 (patch) | |
tree | d4535f6d40e06961ab6d29cf167654da2a761932 /test_packet.c | |
parent | 4acdd7a9436153ab7ee036a935ee1abb30bcabb0 (diff) | |
download | gpsd-2a27bea64b936dffe687ed38f210dddc3ccfc681.tar.gz |
Factor out a little function to initiaslize the packet tester properly.
Diffstat (limited to 'test_packet.c')
-rw-r--r-- | test_packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test_packet.c b/test_packet.c index 1acd69ea..90a56fa3 100644 --- a/test_packet.c +++ b/test_packet.c @@ -239,6 +239,7 @@ static int packet_test(struct map *mp) struct gps_packet_t packet; int failure = 0; + packet_init(&packet); packet.type = BAD_PACKET; packet.state = 0; /*@i@*/memcpy(packet.inbufptr = packet.inbuffer, mp->test, mp->testlen); |