summaryrefslogtreecommitdiff
path: root/packet_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet_test.c')
-rw-r--r--packet_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet_test.c b/packet_test.c
index 2b886ad0..494f044b 100644
--- a/packet_test.c
+++ b/packet_test.c
@@ -37,7 +37,7 @@ struct map {
};
/*@ -initallelements +charint -usedef @*/
-struct map tests[] = {
+static struct map tests[] = {
/* NMEA tests */
{
"NMEA packet with checksum (1)",
@@ -264,5 +264,5 @@ int main(int argc, char *argv[])
else
for (mp = tests; mp < tests + sizeof(tests)/sizeof(tests[0]); mp++)
failcount += packet_test(mp);
- exit(failcount > 0);
+ exit(failcount > 0 ? 1 : 0);
}