diff options
author | Colomban Wendling <[email protected]> | 2023-11-15 15:10:11 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2023-11-21 20:19:58 +0000 |
commit | 96c7ebc6dc9e8b8327db04a9570054ee78743353 (patch) | |
tree | 5d600712c7b3c035dbe78045641cdad9e358b91a /applets/notification_area/status-notifier/sn-host-v0.c | |
parent | 7632b4fe9bb81a440bdde64c8cc45b15e07b1de8 (diff) | |
download | mate-panel-96c7ebc6dc9e8b8327db04a9570054ee78743353.tar.bz2 mate-panel-96c7ebc6dc9e8b8327db04a9570054ee78743353.tar.xz |
Reduce scope of variables
Mostly found by cppcheck.
Diffstat (limited to 'applets/notification_area/status-notifier/sn-host-v0.c')
-rw-r--r-- | applets/notification_area/status-notifier/sn-host-v0.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/applets/notification_area/status-notifier/sn-host-v0.c b/applets/notification_area/status-notifier/sn-host-v0.c index 64da5da9..4ad6b359 100644 --- a/applets/notification_area/status-notifier/sn-host-v0.c +++ b/applets/notification_area/status-notifier/sn-host-v0.c @@ -193,7 +193,6 @@ register_host_cb (GObject *source_object, GError *error; SnHostV0 *v0; gchar **items; - gint i; error = NULL; sn_watcher_v0_gen_call_register_host_finish (SN_WATCHER_V0_GEN (source_object), @@ -224,7 +223,7 @@ register_host_cb (GObject *source_object, items = sn_watcher_v0_gen_dup_registered_items (v0->watcher); if (items) { - for (i = 0; items[i] != NULL; i++) + for (gint i = 0; items[i] != NULL; i++) add_registered_item (v0, items[i]); } |