summaryrefslogtreecommitdiff
path: root/src/examples/elementary/slideshow_example.c
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2017-05-08 15:14:27 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-05-08 15:14:29 -0700
commit77e19c71947365fd56ebfff11c288e7911649569 (patch)
treed6bb6fce5ad61d9434744aa1b0f0c40a7fd17cad /src/examples/elementary/slideshow_example.c
parent94509a3d86b470a54bac9a5974ea5a92847dd061 (diff)
examples: use printf instead of fprintf(stdout, ...)
Summary: Applies same change as e8355c93 for evas, to the remaining examples. This uses the shell command-line: src/examples/evas$ grep -sr 'fprintf(stdout' . | cut -d: -f1 \ | uniq | xargs sed -i "s/fprintf(stdout/printf(/" Note that use of the "fprintf(stdout" construct can generate warnings when -Wformat-security is enabled, if the fprintf statement has no format arguments, so in addition to the stylistic simplification this also helps quell those spurious warnings. Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4836 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples/elementary/slideshow_example.c')
-rw-r--r--src/examples/elementary/slideshow_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/elementary/slideshow_example.c b/src/examples/elementary/slideshow_example.c
index 6f516746a7..9f3c3009a8 100644
--- a/src/examples/elementary/slideshow_example.c
+++ b/src/examples/elementary/slideshow_example.c
@@ -174,9 +174,9 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
174 slide_last = slide_it; 174 slide_last = slide_it;
175 175
176 list = elm_slideshow_items_get(slideshow); 176 list = elm_slideshow_items_get(slideshow);
177 fprintf(stdout, "List of items in the slideshow:\n"); 177 printf("List of items in the slideshow:\n");
178 EINA_LIST_FOREACH(list, l, slide_it) 178 EINA_LIST_FOREACH(list, l, slide_it)
179 fprintf(stdout, "\t%s\n", 179 printf("\t%s\n",
180 (const char *)elm_object_item_data_get(slide_it)); 180 (const char *)elm_object_item_data_get(slide_it));
181 181
182 notify = elm_notify_add(win); 182 notify = elm_notify_add(win);