$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);