summaryrefslogtreecommitdiff
path: root/audio/py-id3lib
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-02-05 22:27:09 +0000
committersbd <sbd@pkgsrc.org>2012-02-05 22:27:09 +0000
commitb8ec3ce36fefeae9b7a8fde33972f63d9627a950 (patch)
treefd95c06dd542be7f6906dada1c21712ac4367f56 /audio/py-id3lib
parent0cf9f43d94ff666013843157c1aaa5356f277161 (diff)
downloadpkgsrc-b8ec3ce36fefeae9b7a8fde33972f63d9627a950.tar.gz
Add a cast to a strchr call.
Diffstat (limited to 'audio/py-id3lib')
-rw-r--r--audio/py-id3lib/distinfo4
-rw-r--r--audio/py-id3lib/patches/patch-aa13
2 files changed, 13 insertions, 4 deletions
diff --git a/audio/py-id3lib/distinfo b/audio/py-id3lib/distinfo
index 9fe94fb5253..ef97b59fdfe 100644
--- a/audio/py-id3lib/distinfo
+++ b/audio/py-id3lib/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2010/01/06 11:20:30 drochner Exp $
+$NetBSD: distinfo,v 1.5 2012/02/05 22:27:09 sbd Exp $
SHA1 (pyid3lib-0.5.1.tar.bz2) = 5026f9aa7f868a081a7caecc54cbdbc0cdaea27b
RMD160 (pyid3lib-0.5.1.tar.bz2) = cec0607aab0eeaaa953428a4d06c7b7a19232616
Size (pyid3lib-0.5.1.tar.bz2) = 21207 bytes
-SHA1 (patch-aa) = 65cb7a9dbdff417baf80fd00c3aebb89a22e7593
+SHA1 (patch-aa) = f5df1b2756fdcc1f6f37a2670400187db732836e
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 ) );