From 82095adae4d17fc4d04d490d478771d9e1be0006 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Sun, 4 Oct 2015 09:19:53 +0200 Subject: [PATCH] examples: fix eina_tmpstr example after revert of strftime Was left broken after the eina_tmpstr_strftime revert. --- src/examples/eina/eina_tmpstr_01.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/examples/eina/eina_tmpstr_01.c b/src/examples/eina/eina_tmpstr_01.c index a8f8d36..36d8c62 100644 --- a/src/examples/eina/eina_tmpstr_01.c +++ b/src/examples/eina/eina_tmpstr_01.c @@ -7,9 +7,7 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { - const char *str, *str2; - time_t curr_time; - struct tm * info; + const char *str; const char *prologe = "The Cylons were created by man. They rebelled. They " "evolved."; @@ -20,13 +18,6 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED) printf("length: %d\n", eina_tmpstr_len(str)); eina_tmpstr_del(str); - curr_time = time(NULL); - info = localtime(&curr_time); - str2 = eina_tmpstr_strftime("%I:%M%p", info); - printf("%s\n", str2); - printf("length: %d\n", eina_tmpstr_len(str2)); - eina_tmpstr_del(str2); - eina_shutdown(); return 0; -- 2.7.4