Otherwise it will return 0x7fffffffffffffff instead of
0x8000000000000004 for e.g. this property
ID_PART_ENTRY_FLAGS=0x8000000000000004
Signed-off-by: David Zeuthen <davidz@redhat.com>
* @key: Name of property.
*
* Look up the value for @key on @device and convert it to an unsigned
* @key: Name of property.
*
* Look up the value for @key on @device and convert it to an unsigned
- * 64-bit integer using strtoll().
+ * 64-bit integer using strtoul().
*
* Returns: The value for @key or 0 if @key doesn't exist or isn't a
* #guint64.
*
* Returns: The value for @key or 0 if @key doesn't exist or isn't a
* #guint64.
- result = strtoll (s, NULL, 0);
+ result = strtoul (s, NULL, 0);
* @name: Name of the sysfs attribute.
*
* Look up the sysfs attribute with @name on @device and convert it to an unsigned
* @name: Name of the sysfs attribute.
*
* Look up the sysfs attribute with @name on @device and convert it to an unsigned
- * 64-bit integer using strtoll().
+ * 64-bit integer using strtoul().
*
* Returns: The value of the sysfs attribute or 0 if there is no such
* attribute.
*
* Returns: The value of the sysfs attribute or 0 if there is no such
* attribute.
- result = strtoll (s, NULL, 0);
+ result = strtoul (s, NULL, 0);