]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix bogus cast to (int) in virNetServerMDNSTimeoutNew
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 18 Jul 2012 15:29:19 +0000 (16:29 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 18 Jul 2012 15:31:31 +0000 (16:31 +0100)
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 <berrange@redhat.com>
src/rpc/virnetservermdns.c

index 335274a9e67cfa5d4414eb598d1176b8f94a626f..90dd8a275a4a644eee19d1f9186373993bd45d28 100644 (file)
@@ -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;
     }