libvirt/examples
Eric Blake ad4e7f90b4 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>
(cherry picked from commit 6f4458a017)
2013-07-29 16:20:29 -06:00
..
apparmor apparmor: QEMU bridge helper policy updates 2012-08-06 16:56:59 +02:00
domain-events examples: fix mingw build vs. printf 2013-07-29 16:20:29 -06:00
dominfo Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
domsuspend Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
hellolibvirt hellolibvirt: Adjust code to use new APIs 2013-03-04 17:36:03 -05:00
openauth maint: consolidate several .gitignore files 2012-02-03 15:27:16 -07:00
python Various typos and misspellings 2012-10-12 00:03:43 +02:00
systemtap Re-add DTrace probes on 'dispose' functions 2013-03-14 12:42:21 +00:00
xml Revert "Refactor the libvirt RPM daemon pieces" 2012-04-03 14:49:31 +08:00