diff options
-rw-r--r-- | ax25/mheard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ax25/mheard.c b/ax25/mheard.c index d1cfd0f..2acd125 100644 --- a/ax25/mheard.c +++ b/ax25/mheard.c @@ -132,7 +132,7 @@ static void PrintPortEntry(struct PortRecord *pr, int data) call = ax25_ntoa(&pr->entry.from_call); if ((s = strstr(call, "-0")) != NULL) *s = '\0'; - if (pr->entry.type < 0 || pr->entry.type > sizeof(types)) + if (pr->entry.type > sizeof(types)) return; printf("%-9s %-5s %8u %5s ", call, pr->entry.portname, pr->entry.count, types[pr->entry.type]); @@ -165,7 +165,7 @@ static void PrintPortEntry(struct PortRecord *pr, int data) case 4: if (!pr->entry.count) return; - if (pr->entry.type < 0 || pr->entry.type > sizeof(types)) + if (pr->entry.type > sizeof(types)) return; if (pr->entry.last_heard < 0 || pr->entry.first_heard < 0) return; |