libvirt/examples
Eric Blake 6f4458a017 examples: fix mingw build vs. printf
Mingw *printf is a moving target; newer mingw now provides a version
of asprintf() that fails to understand %lld:

  CC       event_test-event-test.o
../../../../examples/domain-events/events-c/event-test.c: In function 'myDomainEventRTCChangeCallback':
../../../../examples/domain-events/events-c/event-test.c:270:18: error: unknown conversion type character 'l' in format [-Werror=format=]
                  virDomainGetID(dom), offset) < 0)
                  ^

But since our examples already admitted that they were hacking around
a mingw deficiency, it is easier to just use printf() directly, coupled
with <inttypes.h> macros, for a more portable work-around.

* examples/domain-events/events-c/event-test.c
(myDomainEventRTCChangeCallback): Use PRIdMAX instead of asprintf.

Signed-off-by: Eric Blake <eblake@redhat.com>
2013-07-29 12:53:36 -06:00
..
apparmor maint: use LGPL correctly 2013-05-20 14:03:48 -06:00
domain-events examples: fix mingw build vs. printf 2013-07-29 12:53:36 -06:00
dominfo maint: use LGPL correctly 2013-05-20 14:03:48 -06:00
domsuspend Convert 'int i' to 'size_t i' in examples/ files 2013-07-10 17:55:17 +01:00
hellolibvirt hellolibvirt: Resolve Coverity issues 2013-07-11 14:18:11 -04:00
openauth Convert 'int i' to 'size_t i' in examples/ files 2013-07-10 17:55:17 +01:00
python maint: use LGPL correctly 2013-05-20 14:03:48 -06:00
systemtap maint: use LGPL correctly 2013-05-20 14:03:48 -06:00
xml maint: use LGPL correctly 2013-05-20 14:03:48 -06:00