domain = (char *)str;
- if (virStrToLong_ui(domain, &bus, 16, &pciAddr->domain) != 0)
+ if (virStrToLong_uip(domain, &bus, 16, &pciAddr->domain) != 0)
return -1;
bus++;
- if (virStrToLong_ui(bus, &slot, 16, &pciAddr->bus) != 0)
+ if (virStrToLong_uip(bus, &slot, 16, &pciAddr->bus) != 0)
return -1;
slot++;
- if (virStrToLong_ui(slot, &function, 16, &pciAddr->slot) != 0)
+ if (virStrToLong_uip(slot, &function, 16, &pciAddr->slot) != 0)
return -1;
function++;
- if (virStrToLong_ui(function, NULL, 16, &pciAddr->function) != 0)
+ if (virStrToLong_uip(function, NULL, 16, &pciAddr->function) != 0)
return -1;
return 0;
controller = (char *)str;
- if (virStrToLong_ui(controller, &bus, 10, &ideAddr->controller) != 0)
+ if (virStrToLong_uip(controller, &bus, 10, &ideAddr->controller) != 0)
return -1;
bus++;
- if (virStrToLong_ui(bus, &unit, 10, &ideAddr->bus) != 0)
+ if (virStrToLong_uip(bus, &unit, 10, &ideAddr->bus) != 0)
return -1;
unit++;
- if (virStrToLong_ui(unit, NULL, 10, &ideAddr->unit) != 0)
+ if (virStrToLong_uip(unit, NULL, 10, &ideAddr->unit) != 0)
return -1;
return 0;
cssid = (char *)str;
- if (virStrToLong_ui(cssid, &ssid, 16, &ccwAddr->cssid) != 0)
+ if (virStrToLong_uip(cssid, &ssid, 16, &ccwAddr->cssid) != 0)
return -1;
ssid++;
- if (virStrToLong_ui(ssid, &devno, 16, &ccwAddr->ssid) != 0)
+ if (virStrToLong_uip(ssid, &devno, 16, &ccwAddr->ssid) != 0)
return -1;
devno++;
- if (virStrToLong_ui(devno, NULL, 16, &ccwAddr->devno) != 0)
+ if (virStrToLong_uip(devno, NULL, 16, &ccwAddr->devno) != 0)
return -1;
return 0;
{
unsigned int val;
- if (virStrToLong_ui(key_name, NULL, 0, &val) < 0 || val > 0xffff)
+ if (virStrToLong_uip(key_name, NULL, 0, &val) < 0 || val > 0xffff)
return -1;
return val;
}
for (i = 0; i < nodes_cnt; i++) {
unsigned long id;
char *val = virXMLPropString(nodes[i], "id");
- if (virStrToLong_ul(val, NULL, 10, &id)) {
+ if (virStrToLong_ulp(val, NULL, 10, &id)) {
vshError(ctl, "%s", _("conversion from string failed"));
VIR_FREE(val);
goto cleanup;
for (i = 0; i < nodes_cnt; i++) {
char *val = virXMLPropString(nodes[i], "size");
- if (virStrToLong_ui(val, NULL, 10, &pagesize[i]) < 0) {
+ if (virStrToLong_uip(val, NULL, 10, &pagesize[i]) < 0) {
vshError(ctl, _("unable to parse page size: %s"), val);
VIR_FREE(val);
goto cleanup;
for (i = 0; i < nodes_cnt; i++) {
unsigned long id;
char *val = virXMLPropString(nodes[i], "id");
- if (virStrToLong_ul(val, NULL, 10, &id)) {
+ if (virStrToLong_ulp(val, NULL, 10, &id)) {
vshError(ctl, "%s", _("conversion from string failed"));
VIR_FREE(val);
goto cleanup;