From ae7280b770372ce2fdf709d70f4e0e0043a2412f Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 1 Oct 2021 19:00:31 +0200 Subject: [PATCH] [library] Fix macos format warning library.c:233:123: warning: format specifies type 'long' but the argument has type '__darwin_suseconds_t' (aka 'int') [-Wformat] --- src/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library.c b/src/library.c index 3af4845d..57f31b21 100644 --- a/src/library.c +++ b/src/library.c @@ -230,7 +230,7 @@ library_callback_schedule(library_cb cb, void *arg, struct timeval *wait, enum l event_add(cbreg->ev, wait); - DPRINTF(E_DBG, L_LIB, "Added library callback to %p (id %d), wait %ld.%06ld\n", cbreg->cb, idx_available, wait->tv_sec, wait->tv_usec); + DPRINTF(E_DBG, L_LIB, "Added library callback to %p (id %d), wait %ld.%06ld\n", cbreg->cb, idx_available, (long) wait->tv_sec, (long) wait->tv_usec); return idx_available; }