summaryrefslogtreecommitdiff
path: root/comms/xlog/files/patch-aa
blob: a9de5e4821bdae8ef2264cf27f2c936b759529fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- src/callbacks.c.orig	Tue Nov  5 08:44:15 2002
+++ src/callbacks.c	Tue Nov  5 11:00:58 2002
@@ -74,6 +74,9 @@
 	extern RIG *myrig;
 #endif
 
+/* qsort/bsearch callback functions */
+typedef int (*compar_callback_fn) (const void *, const void *);
+
 /* ABOUT DIALOG */
 void on_aboutbutton_clicked (GtkButton *button, gpointer user_data)
 {
@@ -1627,7 +1630,7 @@
 		if (fields[i] != logw->logfields[i]) break;
 
 	/* copy and re-order the array */
-	qsort(fields, QSO_FIELDS, sizeof(gint), (__compar_fn_t)compare_fields);
+	qsort(fields, QSO_FIELDS, sizeof(gint), (compar_callback_fn)compare_fields);
 	if (i < QSO_FIELDS)
 	{
 		for (i = 0; i < QSO_FIELDS; i++)