summaryrefslogtreecommitdiff
path: root/audio/musicbrainz/patches/patch-aa
blob: d76b465129fa97ddb0fada0f74bcae9095d4a9c4 (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-aa,v 1.1 2004/08/25 22:06:40 markd Exp $

--- examples/getalbum.c.orig	2004-08-26 09:42:15.000000000 +1200
+++ examples/getalbum.c
@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
 {
     musicbrainz_t o;
     char          error[256], data[256], temp[256], *args[2];
-    int           ret, numTracks, trackNum, i, isMultipleArtist = 0;
+    int           ret, numDates, numTracks, trackNum, i, isMultipleArtist = 0;
 
     if (argc < 2)
     {
@@ -141,7 +141,7 @@ int main(int argc, char *argv[])
     if (mb_GetResultData(o, MBE_AlbumGetAmazonCoverartURL, data, 256))
        printf("CoverartURL: %s\n", data);
 
-    int numDates = mb_GetResultInt(o, MBE_AlbumGetNumReleaseDates);
+    numDates = mb_GetResultInt(o, MBE_AlbumGetNumReleaseDates);
     for(i = 1; i <= numDates; i++)
     {
         // Select the first release date