diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2017-01-25 00:33:19 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2017-01-25 00:35:47 +0000 |
commit | a28e91c0687b12fa05f16847106493143ad53125 (patch) | |
tree | 97454c872ba3a5f154a9dc18305a8f60de18782c | |
parent | bf0da775d998d06fac1fd108250e6f7c55dd7c4e (diff) | |
download | libgdata-a28e91c0687b12fa05f16847106493143ad53125.tar.gz |
demos: Fix a shadowed variable
`timezone` is already declared by the system’s time.h. Rename our
variable to `time_zone` to avoid shadowing it.
Spotted by Clang.
-rw-r--r-- | demos/calendar/calendar-cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/calendar/calendar-cli.c b/demos/calendar/calendar-cli.c index 8fcf1342..25a060bc 100644 --- a/demos/calendar/calendar-cli.c +++ b/demos/calendar/calendar-cli.c @@ -55,19 +55,19 @@ tv_to_iso8601_date (GTimeVal *tv) static void print_calendar (GDataCalendarCalendar *calendar) { - const gchar *id, *title, *timezone, *access_level, *description; + const gchar *id, *title, *time_zone, *access_level, *description; gboolean is_hidden, is_selected; id = gdata_entry_get_id (GDATA_ENTRY (calendar)); title = gdata_entry_get_title (GDATA_ENTRY (calendar)); - timezone = gdata_calendar_calendar_get_timezone (calendar); + time_zone = gdata_calendar_calendar_get_timezone (calendar); is_hidden = gdata_calendar_calendar_is_hidden (calendar); is_selected = gdata_calendar_calendar_is_selected (calendar); access_level = gdata_calendar_calendar_get_access_level (calendar); description = gdata_entry_get_summary (GDATA_ENTRY (calendar)); g_print ("%s — %s\n", id, title); - g_print (" Timezone: %s\n", timezone); + g_print (" Timezone: %s\n", time_zone); g_print (" Access level: %s\n", access_level); g_print (" Hidden? %s\n", is_hidden ? "Yes" : "No"); g_print (" Selected? %s\n", is_selected ? "Yes" : "No"); |