summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2006-02-01 15:13:47 +0000
committerPatrick McLean <chutzpah@gentoo.org>2006-02-01 15:13:47 +0000
commit1cf75e159da8b4c25d1c8253c7bda8600da968a7 (patch)
treef9cd8a329c6928d1684fe5d228f156ad2a03bf29 /app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch
parentStable on sparc (diff)
downloadhistorical-1cf75e159da8b4c25d1c8253c7bda8600da968a7.tar.gz
historical-1cf75e159da8b4c25d1c8253c7bda8600da968a7.tar.bz2
historical-1cf75e159da8b4c25d1c8253c7bda8600da968a7.zip
Version bump
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch')
-rw-r--r--app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch b/app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch
new file mode 100644
index 000000000000..f7fe1de4b1ff
--- /dev/null
+++ b/app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch
@@ -0,0 +1,30 @@
+--- unicodehack.c.orig 2006-01-31 20:18:16.000000000 -0500
++++ unicodehack.c 2006-01-31 20:18:39.000000000 -0500
+@@ -26,7 +26,7 @@
+ return -1;
+ }
+
+- if ( (retval = iconv(cd, (const char **)&src, &srcln, &dst, &dstln)) == -1) {
++ if ( (retval = iconv(cd, (char **)&src, &srcln, &dst, &dstln)) == -1) {
+ // XXX ignore error message "iconv: Illiegal byte sequence"
+ // with GNU libiconv. No effect for output in now.
+ //perror("iconv");
+@@ -43,7 +43,7 @@
+ /**
+ * @return less then zero: error.
+ */
+-int unicode2locale(char *dst, size_t dstln, const char *src, size_t srcln) {
++int unicode2locale(char *dst, size_t dstln, char *src, size_t srcln) {
+ iconv_t cd;
+ int retval;
+
+--- unicodehack.h.orig 2006-01-31 20:19:05.000000000 -0500
++++ unicodehack.h 2006-01-31 20:19:26.000000000 -0500
+@@ -4,6 +4,6 @@
+ #define IFPLINE_UNICODEHACK_H
+
+ extern int locale2unicode(char*, size_t, const char*, size_t);
+-extern int unicode2locale(char*, size_t, const char*, size_t);
++extern int unicode2locale(char*, size_t, char*, size_t);
+
+ #endif // IFPLINE_UNICODEHACK_H