summaryrefslogtreecommitdiff
path: root/time/gnotime/patches/patch-ap
blob: e6579efa12d7b2a8ad7e658d7999df91471d7013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ap,v 1.1 2005/03/16 12:48:49 rillig Exp $

gcc-2.95.3 does not like code intermixed with declarations.

--- lib/qof/qofquery.c.orig	Sun May 23 22:57:30 2004
+++ lib/qof/qofquery.c	Wed Mar 16 09:28:08 2005
@@ -1216,13 +1216,14 @@ void qof_query_add_guid_match (QofQuery 
 
 void qof_query_set_book (QofQuery *q, QofBook *book)
 {
+  GSList *slist;
   if (!q || !book) return;
 
   /* Make sure this book is only in the list once */
   if (g_list_index (q->books, book) == -1)
     q->books = g_list_prepend (q->books, book);
 
-  GSList *slist = NULL;
+  slist = NULL;
   g_slist_prepend (slist, QOF_PARAM_GUID);
   g_slist_prepend (slist, QOF_PARAM_BOOK);
   qof_query_add_guid_match (q, slist,