diff options
author | Karel Zak <kzak@redhat.com> | 2010-12-07 00:08:11 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2011-01-03 12:28:47 +0100 |
commit | 5ac6a133276d200e1736853e58a05887e7f75e90 (patch) | |
tree | 29dfa064cd89c1c155c10186739f77a76ce932ef /lib | |
parent | 60dafc19adb7b23403db53c511b5a8d080a81d00 (diff) | |
download | util-linux-old-5ac6a133276d200e1736853e58a05887e7f75e90.tar.gz |
libmount: cleanup mangle() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mangle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mangle.c b/lib/mangle.c index 398323a3..17ca8095 100644 --- a/lib/mangle.c +++ b/lib/mangle.c @@ -69,20 +69,20 @@ void unmangle_to_buffer(const char *s, char *buf, size_t len) *buf = '\0'; } -static inline const char *skip_nonspaces(const char *s) +static inline char *skip_nonspaces(const char *s) { while (*s && !(*s == ' ' || *s == '\t')) s++; - return s; + return (char *) s; } /* * Returns mallocated buffer or NULL in case of error. */ -char *unmangle(const char *s, const char **end) +char *unmangle(const char *s, char **end) { char *buf; - const char *e; + char *e; size_t sz; if (!s) |