Ticket #587 (closed Bug report: fixed)
libhttpd uses depricated index() and rindex()
| Reported by: | jacobmarble@… | Owned by: | gbastien |
|---|---|---|---|
| Priority: | normal | Milestone: | Not yet assigned to a Milestone |
| Component: | Gateway | Version: | |
| Keywords: | Cc: |
Description
When wifidog gateway is used in recent versions of OpenWrt? (8.09, 8.09.1, SVN), libhttpd calls to index() and rindex() fail. This is solved with the following patch:
Index: libhttpd/httpd.h =================================================================== --- libhttpd/httpd.h (revision 1401) +++ libhttpd/httpd.h (working copy) @@ -90,6 +90,9 @@
#define HTTP_ACL_PERMIT 1 #define HTTP_ACL_DENY 2
+// index() and rindex() are not available in OpenWrt? 8.09 +#define index(a,b) strchr(a,b) +#define rindex(a,b) strrchr(a,b)
extern char LIBHTTPD_VERSION[],

