diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-08-10 11:02:04 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-10 17:59:39 +0200 |
commit | fd5b4ca11ea2b8a82343bc0db6a2f422beb305f1 (patch) | |
tree | a0a016f3b77dc819e3dcf8892ea99c1334d601a8 | |
parent | 4bfa638d43c05e8db052cd55818765bb3575a405 (diff) |
shared/utf8: mark char* as const
Avoids compiler warning:
src/shared/utf8.c: In function 'ascii_filter':
src/shared/utf8.c:278:16: warning: assignment discards 'const' qualifier
from pointer target type [enabled by default]
-rw-r--r-- | src/shared/utf8.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/utf8.c b/src/shared/utf8.c index ea7483f50f..5f9f3c60c5 100644 --- a/src/shared/utf8.c +++ b/src/shared/utf8.c @@ -265,7 +265,8 @@ char *ascii_is_valid(const char *str) { } char *ascii_filter(const char *str) { - char *r, *s, *d; + const char *s; + char *r, *d; size_t l; assert(str); |