aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index efb85ce..ebae1e6 100644
--- a/src/util.c
+++ b/src/util.c
@@ -26,7 +26,7 @@ trim(char *s)
return rtrim(ltrim(s));
}
-void
+char *
remove_spaces(char *str)
{
int count = 0;
@@ -35,4 +35,6 @@ remove_spaces(char *str)
if (!isspace(str[i]))
str[count++] = str[i];
str[count] = '\0';
+
+ return str;
}