summaryrefslogtreecommitdiff
path: root/audio/libopendaap/patches/patch-af
blob: c075a67ff908a8ea8d7b7e1c1619808aaed2273e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-af,v 1.3 2005/10/01 18:13:17 kristerw Exp $

gcc-2.95.3 does not like code intermixed with declarations.

--- client.c.orig	Thu May 12 08:46:29 2005
+++ client.c	Sat Oct  1 20:02:09 2005
@@ -1379,11 +1379,10 @@
     int requestid = 0;
 
     HTTP_Connection *http_connection;
+    HTTP_GetResult *httpRes;
 
     if (strlen(songformat) > 4) return -1;
 
-    HTTP_GetResult *httpRes;
-
     if (pCHThis->version_major != 3)
     {
         buf = safe_sprintf(songUrl_42, databaseid, songid, songformat,
@@ -1643,10 +1642,10 @@
 static void AsyncWaitUpdate(void *pv_pCHThis, void *unused)
 {
     DAAP_SClientHost *pCHThis = (DAAP_SClientHost*)pv_pCHThis;
-    TRACE("()\n");
     char hash[33] = {0};
     char updateUrl[] = "/update?session-id=%i&revision-number=%i&delta=%i";
     char *buf;
+    TRACE("()\n");
 
     buf = safe_sprintf(updateUrl, pCHThis->sessionid, pCHThis->revision_number,
                        pCHThis->revision_number);