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]
This commit is contained in:
Dave Reisner 2012-08-10 11:02:04 -04:00 committed by Lennart Poettering
parent 4bfa638d43
commit fd5b4ca11e
1 changed files with 2 additions and 1 deletions

View File

@ -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);