tree-wide: convert open calls to remove spaces to skip_spaces() lib function
[safe/jmp/linux-2.6] / net / irda / irnet / irnet_ppp.c
index 7dea882..156020d 100644 (file)
@@ -76,9 +76,8 @@ irnet_ctrl_write(irnet_socket *       ap,
       /* Look at the next command */
       start = next;
 
-      /* Scrap whitespaces before the command */
-      while(isspace(*start))
-       start++;
+       /* Scrap whitespaces before the command */
+       start = skip_spaces(start);
 
       /* ',' is our command separator */
       next = strchr(start, ',');
@@ -133,8 +132,7 @@ irnet_ctrl_write(irnet_socket *     ap,
              char *    endp;
 
              /* Scrap whitespaces before the command */
-             while(isspace(*begp))
-               begp++;
+             begp = skip_spaces(begp);
 
              /* Convert argument to a number (last arg is the base) */
              addr = simple_strtoul(begp, &endp, 16);