As it would seem that using "index()" with uClibc is deprecated, here's
a patch to haserl to use strchr() instead.

Signed-off-by:  Brian J. Murrell <[EMAIL PROTECTED]>

--- /dev/null   2008-04-20 11:31:37.000000000 -0400
+++ feeds/packages/utils/haserl/patches/102-use-strchr-instead-of-index.patch   
2008-06-19 21:23:46.000000000 -0400
@@ -0,0 +1,11 @@
+--- haserl-0.8.0/src/haserl.c.orig     2008-06-19 21:21:39.000000000 -0400
++++ haserl-0.8.0/src/haserl.c  2008-06-19 21:21:46.000000000 -0400
+@@ -132,7 +132,7 @@
+       if (strlen(prefix)) { memcpy (entry, prefix, strlen(prefix)); }
+       memcpy ((char *) (entry + strlen(prefix)), newbuf, strlen(newbuf));
+ 
+-      keylen = (size_t) (index (entry, '=') - entry);
++      keylen = (size_t) (strchr (entry, '=') - entry);
+       
+       if ( keylen <= 0 ) {
+                       free (entry);

Cheers,
b.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to