summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2010-05-14 18:01:20 +0100
committerAnselm R Garbe <anselm@garbe.us>2010-05-14 18:01:20 +0100
commit6af1b812ae862a64e0c92060b993b591a72d741e (patch)
tree0696662ce2b91fb8c63b213496882f679dc93519 /util.c
parent75d42255f22a40935ced8b2e4c134996f8efebe2 (diff)
downloadcic-6af1b812ae862a64e0c92060b993b591a72d741e.tar.gz
cleanup
Diffstat (limited to 'util.c')
-rw-r--r--util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util.c b/util.c
index 707fc13..26953d0 100644
--- a/util.c
+++ b/util.c
@@ -56,11 +56,11 @@ eat(char *s, int (*p)(int), int r) {
static char*
skip(char *s, char c) {
- while(*s != c && *s != '\0')
- s++;
- if (*s != '\0')
- *s++ = '\0';
- return s;
+ while(*s != c && *s != '\0')
+ s++;
+ if(*s != '\0')
+ *s++ = '\0';
+ return s;
}
static void
@@ -68,7 +68,7 @@ trim(char *s) {
char *e;
e = s + strlen(s) - 1;
- while (isspace(*e) && e > s)
+ while(isspace(*e) && e > s)
e--;
*(e + 1) = '\0';
}