From 32182d8eb690c54c839623475bc6249348e57d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Thu, 28 May 2020 16:49:09 +0200 Subject: [PATCH] Pass integer parameters to sd_bus_message_append correctly --- notify.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/notify.c b/notify.c index e921074..07dab63 100644 --- a/notify.c +++ b/notify.c @@ -23,17 +23,15 @@ void notify(sd_bus* bus, const char* summary, const char* body) } // Fill out the parameters according to // https://developer.gnome.org/notification-spec/#command-notify - uint32_t u = 0; - int32_t i = -1; ret = sd_bus_message_append(m, "susssasa{sv}i", "system-notify", // STRING app_name - &u, // UINT32 replaces_id + 0, // UINT32 replaces_id "utilities-system-monitor", // STRING app_icon summary, // STRING summary body, // STRING body 0, // ARRAY actions 0, // DICT hints - &i // INT32 expire_timeout + -1 // INT32 expire_timeout ); if (ret < 0) { fprintf(stderr, "sd_bus_message_append: %s\n", strerror(-ret));