janus-gateway: make echo test plugin optional
[buildroot-gz.git] / package / rubix / 0001-dont-use-legacy-functions.patch
blob9c34aee6d3704f42fbd02f2e31ed4416b3b2793b
1 Use strstr() instead of index(), since index() is a legacy function
2 and it may not be available in uClibc, depending on the configuration.
4 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6 Index: rubix-1.0.5/cube.c
7 ===================================================================
8 --- rubix-1.0.5.orig/cube.c 2010-02-14 14:19:05.000000000 +0100
9 +++ rubix-1.0.5/cube.c 2010-02-14 14:19:14.000000000 +0100
10 @@ -257,7 +257,7 @@
11 if (i==-1) goto finish;
12 if (buffer[0]=='%') goto new_section;
13 buffer[0]=toupper(buffer[0]);
14 - ptr = index(buffer, '=');
15 + ptr = strstr(buffer, '=');
16 if (ptr) {
17 ++ptr;
18 while (isspace(*ptr)) ++ptr;