From: Daniel P. Berrange Date: Wed, 18 Jul 2012 15:29:19 +0000 (+0100) Subject: Fix bogus cast to (int) in virNetServerMDNSTimeoutNew X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8a89c080698d545f3f2d06d1fa4d8c1af9684942;p=libvirt.git Fix bogus cast to (int) in virNetServerMDNSTimeoutNew The virNetServerMDNSTimeoutNew method was casting a long long to an int when reporting errors. This should just be using %lld instead of %d, avoiding the need to cast Signed-off-by: Daniel P. Berrange --- diff --git a/src/rpc/virnetservermdns.c b/src/rpc/virnetservermdns.c index 335274a9e6..90dd8a275a 100644 --- a/src/rpc/virnetservermdns.c +++ b/src/rpc/virnetservermdns.c @@ -368,7 +368,7 @@ static AvahiTimeout *virNetServerMDNSTimeoutNew(const AvahiPoll *api ATTRIBUTE_U if (t->timer < 0) { virNetError(VIR_ERR_INTERNAL_ERROR, - _("Failed to add timer with timeout %d"), (int)timeout); + _("Failed to add timer with timeout %lld"), timeout); VIR_FREE(t); return NULL; }