~registry/kmod/master

« back to all changes in this revision

Viewing changes to libkmod/libkmod-util.c

  • Committer: Lucas De Marchi
  • Date: 2011-12-12 12:30:01 UTC
  • mfrom: (161.1.30)
  • Revision ID: git-v1:2fee2f13ce5f6b17dd672389de422217c56105e2
Merge branch 'use-mmap'

Conflicts:
        libkmod/libkmod.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
char *strchr_replace(char *s, int c, char r)
209
209
{
210
210
        char *p;
211
 
 
212
 
        for (p = s; p != NULL; p = strchr(p, c))
213
 
                *p = r;
214
 
 
 
211
        for (p = s; *p != '\0'; p++)
 
212
                if (*p == c)
 
213
                        *p = r;
215
214
        return s;
216
215
}
217
216