The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rubix / 0001-dont-use-legacy-functions.patch
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.
3
4 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5
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;