diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-04 16:04:47 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-04 16:04:47 -0500 |
commit | 77bedc8332f12301b0e4566b0eaddcbc571b1043 (patch) | |
tree | bf37f87276e85fa93e9ba7971e3637513d2b932a /test_packet.c | |
parent | 7ea55c1381578a4c371f2bc9bba641ee18acfbda (diff) | |
download | gpsd-77bedc8332f12301b0e4566b0eaddcbc571b1043.tar.gz |
Dead code removal. (This has been replaced by the -e option.)
Diffstat (limited to 'test_packet.c')
-rw-r--r-- | test_packet.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/test_packet.c b/test_packet.c index 7e3b325a..e403ad30 100644 --- a/test_packet.c +++ b/test_packet.c @@ -291,24 +291,7 @@ static int packet_test(struct map *mp) ++failure; } else printf("%2zi: %s test succeeded.\n", mp - singletests + 1, - mp->legend); -#ifdef DUMPIT - for (cp = packet.outbuffer; - cp < packet.outbuffer + packet.outbuflen; cp++) { - if (lexer->type != NMEA_PACKET) - (void)printf(" 0x%02x", *cp); - else if (*cp == '\r') - (void)fputs("\\r", stdout); - else if (*cp == '\n') - (void)fputs("\\n", stdout); - else if (isprint(*cp)) - (void)putchar(*cp); - else - (void)printf("\\x%02x", *cp); - } - (void)putchar('\n'); -#endif /* DUMPIT */ - /*@ +compdef +uniondef +usedef +formatcode @*/ + mp->legend); /*@ +compdef +uniondef +usedef +formatcode @*/ return failure; } |