tmp = value;
}
- if (virStrToLong_ui(tmp, NULL, 10, weight) < 0) {
+ if (virStrToLong_ui(tmp, &tmp, 10, weight) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Unable to parse '%s' as an integer"),
tmp);
if (!str) {
*weight = 0;
- } else if (virStrToLong_ui(str, NULL, 10, weight) < 0) {
+ } else if (virStrToLong_ui(str, &str, 10, weight) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Unable to parse '%s' as an integer"),
str);
if (STREQLEN(tmp, "max", 3)) {
*riops = 0;
- } else if (virStrToLong_ui(tmp, NULL, 10, riops) < 0) {
+ } else if (virStrToLong_ui(tmp, &tmp, 10, riops) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Unable to parse '%s' as an integer"),
str);
if (STREQLEN(tmp, "max", 3)) {
*wiops = 0;
- } else if (virStrToLong_ui(tmp, NULL, 10, wiops) < 0) {
+ } else if (virStrToLong_ui(tmp, &tmp, 10, wiops) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Unable to parse '%s' as an integer"),
str);
if (STREQLEN(tmp, "max", 3)) {
*rbps = 0;
- } else if (virStrToLong_ull(tmp, NULL, 10, rbps) < 0) {
+ } else if (virStrToLong_ull(tmp, &tmp, 10, rbps) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Unable to parse '%s' as an integer"),
str);
if (STREQLEN(tmp, "max", 3)) {
*wbps = 0;
- } else if (virStrToLong_ull(tmp, NULL, 10, wbps) < 0) {
+ } else if (virStrToLong_ull(tmp, &tmp, 10, wbps) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Unable to parse '%s' as an integer"),
str);
return -1;
}
- if (virStrToLong_ull(tmp, NULL, 10, cfs_period) < 0) {
+ if (virStrToLong_ull(tmp, &tmp, 10, cfs_period) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Failed to parse value '%s' from cpu.max."), str);
return -1;
if (STREQLEN(str, "max", 3))
*cfs_quota = ULLONG_MAX / 1000;
- if (virStrToLong_ll(str, NULL, 10, cfs_quota) < 0) {
+ if (virStrToLong_ll(str, &str, 10, cfs_quota) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Failed to parse value '%s' from cpu.max."), str);
return -1;