Hi,

here is a diff for comms/tlf logging program to update hamlib-4.4.
it can support older hamlib.

-- 
SASANO Takayoshi (JG1UAA) <[email protected]>

Index: Makefile
===================================================================
RCS file: /cvs/ports/comms/tlf/Makefile,v
retrieving revision 1.17
diff -u -p -u -p -r1.17 Makefile
--- Makefile    12 Jul 2019 20:43:48 -0000      1.17
+++ Makefile    2 Jan 2022 10:48:51 -0000
@@ -6,7 +6,7 @@ COMMENT=        radio contest logger
 
 DISTNAME=      tlf-1.2.1
 CATEGORIES=    comms hamradio
-REVISION=      1
+REVISION=      2
 
 HOMEPAGE=      http://home.iae.nl/users/reinc/TLF-0.2.html
 
Index: patches/patch-src_sendqrg_c
===================================================================
RCS file: patches/patch-src_sendqrg_c
diff -N patches/patch-src_sendqrg_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_sendqrg_c 2 Jan 2022 10:48:51 -0000
@@ -0,0 +1,34 @@
+--- src/sendqrg.c.orig Thu May 15 20:59:25 2014
++++ src/sendqrg.c      Sun Jan  2 19:45:45 2022
+@@ -24,6 +24,10 @@
+ 
+ #include "startmsg.h"
+ 
++#ifndef HAMLIB_FILPATHLEN
++#define HAMLIB_FILPATHLEN     FILPATHLEN
++#endif
++
+ void send_bandswitch(int trxqrg);
+ 
+ int sendqrg(void)
+@@ -118,7 +122,7 @@ int init_tlf_rig(void)
+       if (strlen(rigportname) > 1) {
+           rigportname[strlen(rigportname) - 1] = '\0';        // remove '\n'
+           strncpy(my_rig->state.rigport.pathname, rigportname,
+-                  FILPATHLEN);
++                  HAMLIB_FILPATHLEN);
+       } else
+       {
+           showmsg("Missing rig port name!");
+@@ -133,9 +137,9 @@ int init_tlf_rig(void)
+     if (dcd_type != RIG_DCD_NONE)
+       my_rig->state.dcdport.type.dcd = dcd_type;
+     if (ptt_file)
+-      strncpy(my_rig->state.pttport.pathname, ptt_file, FILPATHLEN);
++      strncpy(my_rig->state.pttport.pathname, ptt_file, HAMLIB_FILPATHLEN);
+     if (dcd_file)
+-      strncpy(my_rig->state.dcdport.pathname, dcd_file, FILPATHLEN);
++      strncpy(my_rig->state.dcdport.pathname, dcd_file, HAMLIB_FILPATHLEN);
+ 
+     my_rig->state.rigport.parm.serial.rate = serial_rate;
+ 

Reply via email to