[71197] trunk/dports/audio/tagtool

raimue at macports.org raimue at macports.org
Fri Sep 3 21:00:40 PDT 2010


Revision: 71197
          http://trac.macports.org/changeset/71197
Author:   raimue at macports.org
Date:     2010-09-03 21:00:38 -0700 (Fri, 03 Sep 2010)
Log Message:
-----------
audio/tagtool: Fix LP64 issue in string handling functions

Modified Paths:
--------------
    trunk/dports/audio/tagtool/Portfile

Added Paths:
-----------
    trunk/dports/audio/tagtool/files/
    trunk/dports/audio/tagtool/files/patch-str_util-lp64.diff

Modified: trunk/dports/audio/tagtool/Portfile
===================================================================
--- trunk/dports/audio/tagtool/Portfile	2010-09-04 03:42:24 UTC (rev 71196)
+++ trunk/dports/audio/tagtool/Portfile	2010-09-04 04:00:38 UTC (rev 71197)
@@ -4,6 +4,7 @@
 
 name            tagtool
 version         0.12.3
+revision        1
 categories      audio
 platforms       darwin
 maintainers     raimue
@@ -25,6 +26,8 @@
     sha1 e7ed4ebf8f9881cf38b2340b18e95947f658308e \
     rmd160 9f5ae223580948c403cd44d82ecef0d03040ff09
 
+patchfiles      patch-str_util-lp64.diff
+
 depends_build   bin:grep:grep \
                 bin:fgrep:grep \
                 port:pkgconfig \

Added: trunk/dports/audio/tagtool/files/patch-str_util-lp64.diff
===================================================================
--- trunk/dports/audio/tagtool/files/patch-str_util-lp64.diff	                        (rev 0)
+++ trunk/dports/audio/tagtool/files/patch-str_util-lp64.diff	2010-09-04 04:00:38 UTC (rev 71197)
@@ -0,0 +1,38 @@
+--- src/str_util.c.orig	2010-09-04 05:43:02.000000000 +0200
++++ src/str_util.c	2010-09-04 05:47:53.000000000 +0200
+@@ -204,13 +204,13 @@
+ 
+ char *str_strnchr(const char *s, char c, int n)
+ {
+-	int p = (int)s;
++	const char *p = s;
+ 	int count = 0;
+ 
+-	while (*(char *)p) {
+-		if (*(char *)p == c)
++	while (*p) {
++		if (*p == c)
+ 			if (++count == n)
+-				return (char *)p;
++				return p;
+ 		p++;
+ 	}
+ 	return NULL;
+@@ -218,13 +218,13 @@
+ 
+ char *str_strnrchr(const char *s, char c, int n)
+ {
+-	int p = (int)s + strlen(s);
++	const char *p = s + strlen(s);
+ 	int count = 0;
+ 
+-	while (p >= (int)s) {
+-		if (*(char *)p == c)
++	while (p >= s) {
++		if (*p == c)
+ 			if (++count == n)
+-				return (char *)p;
++				return p;
+ 		p--;
+ 	}
+ 	return NULL;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100903/f605b159/attachment.html>


More information about the macports-changes mailing list