From 722de7f5b0b36901abf5746fef9b1ef99f109556 Mon Sep 17 00:00:00 2001 From: mike_m Date: Tue, 9 Aug 2011 23:48:47 +0000 Subject: [PATCH] eina: Use %d to get build time eina_hamster_count() was returning -1 on my machine (Ubuntu 11.04/AMD64), causing make check to fail. eina_test_main.c:51:F:Main:eina_hamster:0: Failure 'eina_hamster_count() <= 0' occured Using %d instead of %i for integers fixes it. Signed-off-by: Mike McCormack git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@62268 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_hamster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina_hamster.c b/src/lib/eina_hamster.c index 556f59f..a94d144 100644 --- a/src/lib/eina_hamster.c +++ b/src/lib/eina_hamster.c @@ -61,7 +61,7 @@ eina_hamster_count(void) int monnum = 0, day = 0, year = 0; int fields; - fields = sscanf(_eina_hamster_time, "%02i:%02i:%02i", &hrs, &min, &sec); + fields = sscanf(_eina_hamster_time, "%02d:%02d:%02d", &hrs, &min, &sec); if (fields == 3) { _eina_hamsters = (hrs * 60) + min; -- 2.7.4