]> git.armaanb.net Git - sic.git/commitdiff
cleanup
authorAnselm R Garbe <anselm@garbe.us>
Fri, 14 May 2010 17:01:20 +0000 (18:01 +0100)
committerAnselm R Garbe <anselm@garbe.us>
Fri, 14 May 2010 17:01:20 +0000 (18:01 +0100)
util.c

diff --git a/util.c b/util.c
index 707fc1388c1b1505595835e11cfba3fdb504bc55..26953d0a879157c8b9232bf04977296660b413e6 100644 (file)
--- 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) {
 
 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
 }
 
 static void
@@ -68,7 +68,7 @@ trim(char *s) {
        char *e;
 
        e = s + strlen(s) - 1;
        char *e;
 
        e = s + strlen(s) - 1;
-       while (isspace(*e) && e > s)
+       while(isspace(*e) && e > s)
                e--;
        *(e + 1) = '\0';
 }
                e--;
        *(e + 1) = '\0';
 }