diff options
author | Karel Zak | 2018-07-20 15:31:42 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-20 15:31:42 +0200 |
commit | 78c66fc61dc42f36c4c49bad811083cabc666583 (patch) | |
tree | 81a323de5fc5fe1f47a601586bc8fc491475669c /lib | |
parent | include/list, include/c: update and container_of() (diff) | |
download | kernel-qcow2-util-linux-78c66fc61dc42f36c4c49bad811083cabc666583.tar.gz kernel-qcow2-util-linux-78c66fc61dc42f36c4c49bad811083cabc666583.tar.xz kernel-qcow2-util-linux-78c66fc61dc42f36c4c49bad811083cabc666583.zip |
lib/mangle: const quialifier cleanup
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 494360d7c..b61c57fcf 100644 --- a/lib/mangle.c +++ b/lib/mangle.c @@ -94,20 +94,20 @@ size_t unhexmangle_to_buffer(const char *s, char *buf, size_t len) return buf - buf0 + 1; } -static inline char *skip_nonspaces(const char *s) +static inline const char *skip_nonspaces(const char *s) { while (*s && !(*s == ' ' || *s == '\t')) s++; - return (char *) s; + return s; } /* * Returns mallocated buffer or NULL in case of error. */ -char *unmangle(const char *s, char **end) +char *unmangle(const char *s, const char **end) { char *buf; - char *e; + const char *e; size_t sz; if (!s) |