@@ -169,7 +169,6 @@ void dbus_cb_fdn_methods(GDBusConnection *connection,
169
169
GDBusMethodInvocation * invocation ,
170
170
gpointer user_data )
171
171
{
172
-
173
172
struct dbus_method * m = bsearch (method_name ,
174
173
methods_fdn ,
175
174
G_N_ELEMENTS (methods_fdn ),
@@ -225,7 +224,6 @@ void dbus_cb_dunst_methods(GDBusConnection *connection,
225
224
GDBusMethodInvocation * invocation ,
226
225
gpointer user_data )
227
226
{
228
-
229
227
struct dbus_method * m = bsearch (method_name ,
230
228
methods_dunst ,
231
229
G_N_ELEMENTS (methods_dunst ),
@@ -236,8 +234,7 @@ void dbus_cb_dunst_methods(GDBusConnection *connection,
236
234
m -> method (connection , sender , parameters , invocation );
237
235
} else {
238
236
LOG_M ("Unknown method name: '%s' (sender: '%s')." ,
239
- method_name ,
240
- sender );
237
+ method_name , sender );
241
238
}
242
239
}
243
240
@@ -458,7 +455,7 @@ static void gradient_entry(const struct gradient *grad, GVariantDict *dict, cons
458
455
}
459
456
460
457
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 ++ ) {
462
459
char buf [10 ];
463
460
if (color_to_string (grad -> colors [i ], buf ))
464
461
strv [i ] = g_strdup (buf );
@@ -677,7 +674,7 @@ static void dbus_cb_GetCapabilities(
677
674
g_variant_builder_add (builder , "s" , "body-hyperlinks" );
678
675
g_variant_builder_add (builder , "s" , "icon-static" );
679
676
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 )
681
678
g_variant_builder_add (builder , "s" , stack_tag_hints [i ]);
682
679
683
680
// 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
769
766
*
770
767
* Only accept to first one we find.
771
768
*/
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 ) {
773
770
if ((dict_value = g_variant_lookup_value (hints , stack_tag_hints [i ], G_VARIANT_TYPE_STRING ))) {
774
771
n -> stack_tag = g_variant_dup_string (dict_value , NULL );
775
772
g_variant_unref (dict_value );
@@ -870,7 +867,7 @@ static struct notification *dbus_message_to_notification(const gchar *sender, GV
870
867
size_t length = g_strv_length (cols );
871
868
struct gradient * grad = gradient_alloc (length );
872
869
873
- for (int i = 0 ; i < length ; i ++ ) {
870
+ for (size_t i = 0 ; i < length ; i ++ ) {
874
871
if (!string_parse_color (cols [i ], & grad -> colors [i ])) {
875
872
g_free (grad );
876
873
goto end ;
@@ -911,7 +908,6 @@ static struct notification *dbus_message_to_notification(const gchar *sender, GV
911
908
912
909
void signal_length_propertieschanged (void )
913
910
{
914
-
915
911
static unsigned int last_displayed = 0 ;
916
912
static unsigned int last_history = 0 ;
917
913
static unsigned int last_waiting = 0 ;
@@ -1215,7 +1211,7 @@ gboolean dbus_cb_dunst_Properties_Set(GDBusConnection *connection,
1215
1211
1216
1212
1217
1213
static const GDBusInterfaceVTable interface_vtable_fdn = {
1218
- dbus_cb_fdn_methods
1214
+ dbus_cb_fdn_methods ,
1219
1215
};
1220
1216
1221
1217
static const GDBusInterfaceVTable interface_vtable_dunst = {
0 commit comments