diff options
author | rbuj <[email protected]> | 2021-03-10 10:27:09 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-03-29 07:53:58 +0200 |
commit | 02cf23f7ed09e8c204200152f9dda39970864d39 (patch) | |
tree | 776565589b3fa5e6b9995cb743b927525a1c8a6d /libmate-desktop/mate-bg.c | |
parent | b1c408e7c97bb2dc64a3d83b2098dfca14ecb916 (diff) | |
download | mate-desktop-02cf23f7ed09e8c204200152f9dda39970864d39.tar.bz2 mate-desktop-02cf23f7ed09e8c204200152f9dda39970864d39.tar.xz |
Remove shadow warnings [-Wshadow]
Diffstat (limited to 'libmate-desktop/mate-bg.c')
-rw-r--r-- | libmate-desktop/mate-bg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index 64c8d6a..fd55e4a 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -3071,7 +3071,7 @@ read_slideshow_file (const char *filename, g_markup_parse_context_free (context); if (show) { - int len; + guint num_items; t = mktime (&show->start_tm); @@ -3079,14 +3079,14 @@ read_slideshow_file (const char *filename, dump_bg (show); - len = g_queue_get_length (show->slides); + num_items = g_queue_get_length (show->slides); /* no slides, that's not a slideshow */ - if (len == 0) { + if (num_items == 0) { slideshow_unref (show); show = NULL; /* one slide, there's no transition */ - } else if (len == 1) { + } else if (num_items == 1) { Slide *slide = show->slides->head->data; slide->duration = show->total_duration = G_MAXUINT; } |