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 17:59:39 +02:00
committed by Lennart Poettering
parent 4bfa638d43
commit fd5b4ca11e
+2 -1
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);