From 59288b7c56ce5f275a0f47ab6d4b7a20b262330a Mon Sep 17 00:00:00 2001 From: wb2osz Date: Tue, 24 May 2022 02:03:37 +0100 Subject: [PATCH] Pull Request 394 - fix compilation on musl --- src/decode_aprs.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/decode_aprs.c b/src/decode_aprs.c index 9543a4a..26e87cc 100644 --- a/src/decode_aprs.c +++ b/src/decode_aprs.c @@ -204,6 +204,15 @@ void decode_aprs (decode_aprs_t *A, packet_t pp, int quiet, int third_party) A->g_footprint_lon = G_UNKNOWN; A->g_footprint_radius = G_UNKNOWN; +// TODO: Complain if obsolete WIDE or RELAY is found in via path. + +// TODO: complain if unused WIDEn is see in path. +// There is a report of UIDIGI decrementing ssid 1 to 0 and not marking it used. +// http://lists.tapr.org/pipermail/aprssig_lists.tapr.org/2022-May/049397.html + +// TODO: Complain if used digi is found after unused. Should never happen. + + // If third-party header, try to decode just the payload. if (*pinfo == '}') { @@ -4113,11 +4122,8 @@ static void decode_tocall (decode_aprs_t *A, char *dest) * models before getting to the more generic APY. */ -#if defined(__WIN32__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__) qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), tocall_cmp); -#else - qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), (__compar_fn_t)tocall_cmp); -#endif + } else { if ( ! A->g_quiet) {