[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Eliminate compiler warning about non-const format string



On Sat, Apr 03, 2010 at 11:21:34PM -0400, Laine Stump wrote:
> ---
>  src/nwfilter/nwfilter_ebiptables_driver.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/nwfilter/nwfilter_ebiptables_driver.c b/src/nwfilter/nwfilter_ebiptables_driver.c
> index 6d66543..cffe027 100644
> --- a/src/nwfilter/nwfilter_ebiptables_driver.c
> +++ b/src/nwfilter/nwfilter_ebiptables_driver.c
> @@ -204,7 +204,7 @@ _printDataType(virConnectPtr conn,
>      case DATATYPE_IPMASK:
>          if (snprintf(buf, bufsize, "%d",
>                       item->u.u8) >= bufsize) {
> -            virNWFilterReportError(conn, VIR_ERR_INVALID_NWFILTER,
> +            virNWFilterReportError(conn, VIR_ERR_INVALID_NWFILTER, "%s",
>                                     _("Buffer too small for uint8 type"));
>              return 1;
>          }

  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]