Fix JTDSK compilation warnings

https://github.com/Hamlib/Hamlib/issues/233
pull/234/head
mdblack98 2020-05-01 14:33:35 -05:00
rodzic 9e710156e3
commit d5d6c55439
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -676,7 +676,7 @@ int HAMLIB_API read_string(hamlib_port_t *p,
if (rxmax < 1)
{
rig_debug(RIG_DEBUG_ERR, "%s: error rxmax=%ld\n", __func__, rxmax);
rig_debug(RIG_DEBUG_ERR, "%s: error rxmax=%ld\n", __func__, (long)rxmax);
return 0;
}

Wyświetl plik

@ -1260,7 +1260,7 @@ int HAMLIB_API elapsed_ms(struct timespec *start, int flag_start)
struct timespec stop;
double elapsed_secs;
rig_debug(RIG_DEBUG_TRACE, "%s: start = %ld,%ld\n",__func__,start->tv_sec,start->tv_nsec);
rig_debug(RIG_DEBUG_TRACE, "%s: start = %ld,%ld\n",__func__,(long)start->tv_sec,(long)start->tv_nsec);
if (!flag_start && start->tv_nsec == 0) return 1000000;
if (flag_start)