summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2010-12-07 00:08:11 +0100
committerKarel Zak <kzak@redhat.com>2011-01-03 12:28:47 +0100
commit5ac6a133276d200e1736853e58a05887e7f75e90 (patch)
tree29dfa064cd89c1c155c10186739f77a76ce932ef /lib
parent60dafc19adb7b23403db53c511b5a8d080a81d00 (diff)
downloadutil-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.c8
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)