• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/matchbox-lib/0001-index-is-legacy.patch
Yann E. MORINYann E. MORIN committed 3b468acbb4e03 Jun 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
index() is a legacy function, not implemented in some uClibc
2
configurations.
3
​
4
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5
---
6
 libmb/mbexp.c  |    2 +-
7
 libmb/mbmenu.c |    2 +-
8
 2 files changed, 2 insertions(+), 2 deletions(-)
9
​
10
Index: libmatchbox-1.9/libmb/mbexp.c
11
===================================================================
12
--- libmatchbox-1.9.orig/libmb/mbexp.c
13
+++ libmatchbox-1.9/libmb/mbexp.c
14
@@ -492,7 +492,7 @@
15
 
16
   /* get the family */
17
 
18
-  if (index(spec, ',') != NULL || index(spec, '-') != NULL) 
19
+  if (strchr(spec, ',') != NULL || strchr(spec, '-') != NULL) 
20
     has_comma_delim = True;
21
 
22
   while (!got_family) {
23
Index: libmatchbox-1.9/libmb/mbmenu.c
24
===================================================================
25
--- libmatchbox-1.9.orig/libmb/mbmenu.c
26
+++ libmatchbox-1.9/libmb/mbmenu.c
27
@@ -433,7 +433,7 @@
28
    {
29
       s = p;
30
       found   = NULL;
31
-      while(index("/\0", *p) == NULL) p++;
32
+      while(strchr("/\0", *p) == NULL) p++;
33
       if (*p != '\0') { *p = '\0'; p++; };
34
 
35
       item = current->items;
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.