- fix warning about discarding qualifiers in initialization
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 12 Sep 2006 13:25:16 +0000 (13:25 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 12 Sep 2006 13:25:16 +0000 (13:25 -0000)
libbb/run_parts.c

index 7bdae5b3821bb5ecfca7ab5750e13273851f8977..c1a45e3d908b8edf5dc5ac5d4822b1553131b567 100644 (file)
@@ -27,7 +27,7 @@
  */
 static int valid_name(const struct dirent *d)
 {
-       char *c = d->d_name;
+       const char *c = d->d_name;
 
        while (*c) {
                if (!isalnum(*c) && (*c != '_') && (*c != '-')) {