mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-13 19:25:13 +00:00
Eliminate compiler warning about non-const format string
This commit is contained in:
parent
905709500a
commit
5dac5970a5
@ -204,7 +204,7 @@ _printDataType(virConnectPtr conn,
|
|||||||
case DATATYPE_IPMASK:
|
case DATATYPE_IPMASK:
|
||||||
if (snprintf(buf, bufsize, "%d",
|
if (snprintf(buf, bufsize, "%d",
|
||||||
item->u.u8) >= bufsize) {
|
item->u.u8) >= bufsize) {
|
||||||
virNWFilterReportError(conn, VIR_ERR_INVALID_NWFILTER,
|
virNWFilterReportError(conn, VIR_ERR_INVALID_NWFILTER, "%s",
|
||||||
_("Buffer too small for uint8 type"));
|
_("Buffer too small for uint8 type"));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user