Update parse_units.c
This commit is contained in:
@@ -77,7 +77,7 @@ parse_something (const char *s, const struct units *units,
|
|||||||
unsigned partial;
|
unsigned partial;
|
||||||
int no_val_p = 0;
|
int no_val_p = 0;
|
||||||
|
|
||||||
while(isspace((unsigned char)*p) || *p == ',')
|
while (isspace((unsigned char)*p) || *p == ',')
|
||||||
++p;
|
++p;
|
||||||
|
|
||||||
val = strtol(p, &next, 0);
|
val = strtol(p, &next, 0);
|
||||||
@@ -135,7 +135,7 @@ parse_something (const char *s, const struct units *units,
|
|||||||
}
|
}
|
||||||
if (*p == 's')
|
if (*p == 's')
|
||||||
++p;
|
++p;
|
||||||
while(isspace((unsigned char)*p))
|
while (isspace((unsigned char)*p))
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
Reference in New Issue
Block a user