From: David Disseldorp Date: Mon, 15 Oct 2012 13:36:58 +0000 (+0200) Subject: Fix compiler warnings in example C client X-Git-Tag: v0.1.3~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6312c2a3d67868c7e249be43d2cf1a56a4c6189;p=thirdparty%2Fsnapper.git Fix compiler warnings in example C client --- diff --git a/examples/C/snapper_dbus_cli.c b/examples/C/snapper_dbus_cli.c index 3e972bda..63c7c129 100644 --- a/examples/C/snapper_dbus_cli.c +++ b/examples/C/snapper_dbus_cli.c @@ -26,6 +26,8 @@ #include #include #include +#define __STDC_FORMAT_MACROS +#include #define CDBUS_SIG_LIST_SNAPS_RSP "a(uqutussa{ss})" #define CDBUS_SIG_LIST_CONFS_RSP "a(ssa{ss})" @@ -337,7 +339,7 @@ static void snap_array_print(int32_t num_snaps, printf("id: %u\n" "type: %u\n" "pre_id: %u\n" - "time: %lu\n" + "time: %" PRIu64 "\n" "creator_uid: %u\n" "desc: %s\n" "cleanup: %s\n", @@ -944,7 +946,6 @@ static int cdbus_del_snap_pack(char *snapper_conf, static int cdbus_del_snap_unpack(DBusConnection *conn, DBusMessage *rsp_msg) { - DBusMessageIter iter; int msg_type; const char *sig;