summaryrefslogtreecommitdiff
path: root/package/serdisplib/patches/patch-src_serdisp_connect_usb_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-31 17:53:55 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-31 17:53:55 +0200
commit1cd31f169fab4ab0ce45617c161da3fec9f7359d (patch)
treee705bef0fbb742cafc1ca64b6c786db1b82622ab /package/serdisplib/patches/patch-src_serdisp_connect_usb_c
parent5e82ed3e9ada7f5c9e66db5568032a49f66a6e93 (diff)
fix regressions from ipkg rework
- remove old glib1 lib - rename glib2 -> glib - rename libgdbm -> gdbm - remove obsoleted wireless-tools, use iw - remove upstream unmaintained slurm make allmodconfig runs through on Debian/lenny amd64 for alix1c target
Diffstat (limited to 'package/serdisplib/patches/patch-src_serdisp_connect_usb_c')
-rw-r--r--package/serdisplib/patches/patch-src_serdisp_connect_usb_c39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/serdisplib/patches/patch-src_serdisp_connect_usb_c b/package/serdisplib/patches/patch-src_serdisp_connect_usb_c
new file mode 100644
index 000000000..c400ce875
--- /dev/null
+++ b/package/serdisplib/patches/patch-src_serdisp_connect_usb_c
@@ -0,0 +1,39 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- serdisplib-1.97.8.orig/src/serdisp_connect_usb.c 2008-07-30 23:44:23.000000000 +0200
++++ serdisplib-1.97.8/src/serdisp_connect_usb.c 2009-05-31 16:28:11.000000000 +0200
+@@ -220,7 +220,7 @@ serdisp_CONN_t* SDCONNusb_open(const cha
+ #endif
+
+ devname = (char*)sdcdev;
+- idx = index(devname, ':');
++ idx = strchr(devname, ':');
+
+ if (serdisp_ptrdistance(idx, devname) >= 18) {
+ sd_error(SERDISP_ENXIO, "%s(): invalid protocol (too long)", __func__);
+@@ -230,7 +230,7 @@ serdisp_CONN_t* SDCONNusb_open(const cha
+ sdtools_strncpy(protocol, devname, serdisp_ptrdistance(idx, devname));
+ devname = (idx+1);
+
+- idx = index(devname, ':');
++ idx = strchr(devname, ':');
+
+ if (idx) {
+ if (serdisp_ptrdistance(idx, devname) >= 8) {
+@@ -242,7 +242,7 @@ serdisp_CONN_t* SDCONNusb_open(const cha
+ occurrence = (int)strtol(buffer, 0, 10);
+ }
+
+- idx = index(devname, '/');
++ idx = strchr(devname, '/');
+ if (idx && serdisp_ptrdistance(idx, devname) < 7) {
+ sdtools_strncpy(buffer, devname, serdisp_ptrdistance(idx, devname));
+ vendorID = (int)strtol(buffer, &endptr, 16);
+@@ -254,7 +254,7 @@ serdisp_CONN_t* SDCONNusb_open(const cha
+
+
+ if (vendorID != -1) {
+- idx = index(devname, '/');
++ idx = strchr(devname, '/');
+ if (!idx) idx = devname + strlen(devname);
+ if (serdisp_ptrdistance(idx, devname) < 7) {
+ sdtools_strncpy(buffer, devname, serdisp_ptrdistance(idx, devname));