@@ -169,7 +169,6 @@ void dbus_cb_fdn_methods(GDBusConnection *connection,
169169 GDBusMethodInvocation * invocation ,
170170 gpointer user_data )
171171{
172-
173172 struct dbus_method * m = bsearch (method_name ,
174173 methods_fdn ,
175174 G_N_ELEMENTS (methods_fdn ),
@@ -225,7 +224,6 @@ void dbus_cb_dunst_methods(GDBusConnection *connection,
225224 GDBusMethodInvocation * invocation ,
226225 gpointer user_data )
227226{
228-
229227 struct dbus_method * m = bsearch (method_name ,
230228 methods_dunst ,
231229 G_N_ELEMENTS (methods_dunst ),
@@ -236,8 +234,7 @@ void dbus_cb_dunst_methods(GDBusConnection *connection,
236234 m -> method (connection , sender , parameters , invocation );
237235 } else {
238236 LOG_M ("Unknown method name: '%s' (sender: '%s')." ,
239- method_name ,
240- sender );
237+ method_name , sender );
241238 }
242239}
243240
@@ -458,7 +455,7 @@ static void gradient_entry(const struct gradient *grad, GVariantDict *dict, cons
458455 }
459456
460457 char * * strv = g_malloc ((grad -> length + 1 ) * sizeof (char * ));
461- for (int i = 0 ; i < grad -> length ; i ++ ) {
458+ for (size_t i = 0 ; i < grad -> length ; i ++ ) {
462459 char buf [10 ];
463460 if (color_to_string (grad -> colors [i ], buf ))
464461 strv [i ] = g_strdup (buf );
@@ -677,7 +674,7 @@ static void dbus_cb_GetCapabilities(
677674 g_variant_builder_add (builder , "s" , "body-hyperlinks" );
678675 g_variant_builder_add (builder , "s" , "icon-static" );
679676
680- for (int i = 0 ; i < sizeof (stack_tag_hints )/sizeof (* stack_tag_hints ); ++ i )
677+ for (size_t i = 0 ; i < sizeof (stack_tag_hints )/sizeof (* stack_tag_hints ); ++ i )
681678 g_variant_builder_add (builder , "s" , stack_tag_hints [i ]);
682679
683680 // Since markup isn't a global variable anymore, look it up in the
@@ -769,7 +766,7 @@ static struct notification *dbus_message_to_notification(const gchar *sender, GV
769766 *
770767 * Only accept to first one we find.
771768 */
772- for (int i = 0 ; i < sizeof (stack_tag_hints )/sizeof (* stack_tag_hints ); ++ i ) {
769+ for (size_t i = 0 ; i < sizeof (stack_tag_hints )/sizeof (* stack_tag_hints ); ++ i ) {
773770 if ((dict_value = g_variant_lookup_value (hints , stack_tag_hints [i ], G_VARIANT_TYPE_STRING ))) {
774771 n -> stack_tag = g_variant_dup_string (dict_value , NULL );
775772 g_variant_unref (dict_value );
@@ -870,7 +867,7 @@ static struct notification *dbus_message_to_notification(const gchar *sender, GV
870867 size_t length = g_strv_length (cols );
871868 struct gradient * grad = gradient_alloc (length );
872869
873- for (int i = 0 ; i < length ; i ++ ) {
870+ for (size_t i = 0 ; i < length ; i ++ ) {
874871 if (!string_parse_color (cols [i ], & grad -> colors [i ])) {
875872 g_free (grad );
876873 goto end ;
@@ -911,7 +908,6 @@ static struct notification *dbus_message_to_notification(const gchar *sender, GV
911908
912909void signal_length_propertieschanged (void )
913910{
914-
915911 static unsigned int last_displayed = 0 ;
916912 static unsigned int last_history = 0 ;
917913 static unsigned int last_waiting = 0 ;
@@ -1215,7 +1211,7 @@ gboolean dbus_cb_dunst_Properties_Set(GDBusConnection *connection,
12151211
12161212
12171213static const GDBusInterfaceVTable interface_vtable_fdn = {
1218- dbus_cb_fdn_methods
1214+ dbus_cb_fdn_methods ,
12191215};
12201216
12211217static const GDBusInterfaceVTable interface_vtable_dunst = {
0 commit comments