summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/run_parts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/run_parts.c b/libbb/run_parts.c
index 7bdae5b..c1a45e3 100644
--- a/libbb/run_parts.c
+++ b/libbb/run_parts.c
@@ -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 != '-')) {