cmdline (merge-intel): fix whitespaces
[libcmdline.git] / src / lib / cmdline_parse_ipaddr.c
index 96b384d..24ed350 100644 (file)
@@ -45,7 +45,7 @@ struct cmdline_token_ops cmdline_token_ipaddr_ops = {
 };
 
 
-int 
+int
 cmdline_parse_ipaddr(cmdline_parse_token_hdr_t *tk, const char *buf, void *res)
 {
        struct cmdline_token_ipaddr *tk2 = (struct cmdline_token_ipaddr *)tk;
@@ -60,7 +60,7 @@ cmdline_parse_ipaddr(cmdline_parse_token_hdr_t *tk, const char *buf, void *res)
 
        while (!cmdline_isendoftoken(buf[token_len]))
                token_len++;
-                        
+
        /* if token is too big... */
        if (token_len >= INET6_ADDRSTRLEN+4)
                return -1;
@@ -81,7 +81,7 @@ cmdline_parse_ipaddr(cmdline_parse_token_hdr_t *tk, const char *buf, void *res)
                ipaddr->prefixlen = prefixlen;
        }
        else {
-               ipaddr->prefixlen = 0;  
+               ipaddr->prefixlen = 0;
        }
 
        /* convert the IP addr */
@@ -96,7 +96,7 @@ cmdline_parse_ipaddr(cmdline_parse_token_hdr_t *tk, const char *buf, void *res)
                return token_len;
        }
        return -1;
-                        
+
 }
 
 int cmdline_get_help_ipaddr(cmdline_parse_token_hdr_t *tk, char *dstbuf,