File xlog-RIGCAPS_NOT_CONST.diff of Package xlog

diff -ur xlog-2.0.25_orig/src/hamlib-utils.c xlog-2.0.25/src/hamlib-utils.c
--- xlog-2.0.25_orig/src/hamlib-utils.c	2021-10-03 19:38:22.000000000 +0200
+++ xlog-2.0.25/src/hamlib-utils.c	2025-01-04 11:52:16.785772937 +0100
@@ -197,7 +197,11 @@
 
 /* Append a new entry in the driver list. It is called by rig_list_foreach */
 static gint
+#ifdef RIGCAPS_NOT_CONST
+riglist_make_list (struct rig_caps *caps, gpointer data)
+#else
 riglist_make_list (const struct rig_caps *caps, gpointer data)
+#endif
 {
 	rigs = g_list_append (rigs, (gpointer) caps);
 	return 1;		/* !=0, we want them all ! */
openSUSE Build Service is sponsored by