fixed another bug.. now v060 Signed-off-by: Michael Vogt <michu at neophob.com>
[openwrt/svn-archive/archive.git] / utils / bemused / patches / 100-iconv.patch
1 --- bemused-mpd-r059/mpdctrl.orig 2008-04-23 11:53:58.000000000 +0200
2 +++ bemused-mpd-r059/mpdctrl.c 2008-04-23 14:36:34.000000000 +0200
3 @@ -160,8 +160,8 @@
4 }
5
6 /* OpenWRT needs a type cast */
7 - /* iconv_value = iconv(i, (const char **)&p1, &fromlen, &p2, &tolen); */
8 - iconv_value = iconv(i, &p1, &fromlen, &p2, &tolen);
9 + iconv_value = iconv(i, (const char **)&p1, &fromlen, &p2, &tolen);
10 + /* iconv_value = iconv(i, &p1, &fromlen, &p2, &tolen); */
11 if (iconv_value == (size_t) -1) {
12 error ("ICONV ERROR3: failed to convert string, error: %d\n", errno);
13 return "ICONV ERROR3";
14 --- bemused-mpd-r059/mpdctrl.orig 2008-04-23 11:53:58.000000000 +0200
15 +++ bemused-mpd-r059/mpdctrl.c 2008-04-23 14:36:34.000000000 +0200
16 @@ -160,8 +160,8 @@
17 }
18
19 /* OpenWRT needs a type cast */
20 - /* iconv_value = iconv(i, (const char **)&p1, &fromlen, &p2, &tolen); */
21 - iconv_value = iconv(i, &p1, &fromlen, &p2, &tolen);
22 + iconv_value = iconv(i, (const char **)&p1, &fromlen, &p2, &tolen);
23 + /* iconv_value = iconv(i, &p1, &fromlen, &p2, &tolen); */
24 if (iconv_value == (size_t) -1) {
25 error ("ICONV ERROR3: failed to convert string, error: %d\n", errno);
26 return "ICONV ERROR3";