summaryrefslogtreecommitdiffstats
path: root/libblkid/src/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'libblkid/src/read.c')
-rw-r--r--libblkid/src/read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libblkid/src/read.c b/libblkid/src/read.c
index 42867735f..89adf1167 100644
--- a/libblkid/src/read.c
+++ b/libblkid/src/read.c
@@ -320,14 +320,14 @@ static int parse_tag(blkid_cache cache, blkid_dev dev, char **cp)
/* Some tags are stored directly in the device struct */
if (!strcmp(name, "DEVNO"))
- dev->bid_devno = strtoull(value, 0, 0);
+ dev->bid_devno = strtoull(value, NULL, 0);
else if (!strcmp(name, "PRI"))
- dev->bid_pri = strtol(value, 0, 0);
+ dev->bid_pri = strtol(value, NULL, 0);
else if (!strcmp(name, "TIME")) {
char *end = NULL;
dev->bid_time = strtoull(value, &end, 0);
if (end && *end == '.')
- dev->bid_utime = strtoull(end + 1, 0, 0);
+ dev->bid_utime = strtoull(end + 1, NULL, 0);
} else
ret = blkid_set_tag(dev, name, value, strlen(value));