summaryrefslogtreecommitdiff
path: root/audio/py-id3lib/patches
diff options
context:
space:
mode:
authorsbd <sbd>2012-02-05 22:27:09 +0000
committersbd <sbd>2012-02-05 22:27:09 +0000
commit9c7f93c04f5be89c5c481eda88ba6925878f2598 (patch)
treefd95c06dd542be7f6906dada1c21712ac4367f56 /audio/py-id3lib/patches
parentb403f40ec46515abe41be1dd3eaa4045985f3f0e (diff)
downloadpkgsrc-9c7f93c04f5be89c5c481eda88ba6925878f2598.tar.gz
Add a cast to a strchr call.
Diffstat (limited to 'audio/py-id3lib/patches')
-rw-r--r--audio/py-id3lib/patches/patch-aa13
1 files changed, 11 insertions, 2 deletions
diff --git a/audio/py-id3lib/patches/patch-aa b/audio/py-id3lib/patches/patch-aa
index 81ab384672b..8ce3f301664 100644
--- a/audio/py-id3lib/patches/patch-aa
+++ b/audio/py-id3lib/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.3 2010/01/06 11:20:30 drochner Exp $
+$NetBSD: patch-aa,v 1.4 2012/02/05 22:27:09 sbd Exp $
Fix for LP64 on python > 2.4.
@@ -91,7 +91,7 @@ Fix for LP64 on python > 2.4.
{
ID3_Frame* newframe;
-@@ -382,7 +393,7 @@ static ID3_Frame** frames_from_dictseq(
+@@ -382,7 +393,7 @@ static ID3_Frame** frames_from_dictseq(
return NULL;
}
@@ -109,3 +109,12 @@ Fix for LP64 on python > 2.4.
ID3_Field* field;
ID3_FieldID flid;
+@@ -1054,7 +1065,7 @@ static PyObject* id3_getattr( ID3Object*
+ fld = frame->GetField( ID3FN_TEXT );
+ str = fld->GetRawText();
+
+- if ( (slash = strchr( str, '/' )) != NULL )
++ if ( (slash = (char *)strchr( str, '/' )) != NULL )
+ result = Py_BuildValue( "ii", atoi( str ), atoi( slash+1 ) );
+ else
+ result = Py_BuildValue( "(i)", atoi( str ) );