From a4832258a8d8f5fc70ae649a5c9929386f8c27f0 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 1 Feb 2023 17:01:24 +0100 Subject: use unsigned long for time_t usage (Coverity) --- camlibs/canon/canon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/canon/canon.c b/camlibs/canon/canon.c index 86df352b3..bf2cd26df 100644 --- a/camlibs/canon/canon.c +++ b/camlibs/canon/canon.c @@ -2692,7 +2692,7 @@ canon_int_set_time (Camera *camera, time_t date, GPContext *context) time_t new_date; struct tm *tm; - GP_DEBUG ("canon_int_set_time: %i=0x%x %s", (unsigned int) date, (unsigned int) date, + GP_DEBUG ("canon_int_set_time: %li=0x%lx %s", (unsigned long) date, (unsigned long) date, asctime (localtime (&date))); /* call localtime() just to get 'extern long timezone' / tm->tm_gmtoff set. -- cgit v1.2.1