Add Intel IOMeter file access server example job file
[fio.git] / parse.c
diff --git a/parse.c b/parse.c
index b40d51c754d76c3d87b62c72ce89adee7f7a8b13..f907a349ff24931044592a3c69ada66672eab722 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -106,7 +106,7 @@ static unsigned long get_mult_bytes(char c)
 /*
  * convert string into decimal value, noting any size suffix
  */
-static int str_to_decimal(const char *str, long long *val, int kilo)
+int str_to_decimal(const char *str, long long *val, int kilo)
 {
        int len;
 
@@ -188,7 +188,7 @@ static int check_int(const char *p, int *val)
 {
        if (!strlen(p))
                return 1;
-       if (strstr(p, "0x")) {
+       if (strstr(p, "0x") || strstr(p, "0X")) {
                if (sscanf(p, "%x", val) == 1)
                        return 0;
        } else {