From f0bd2f35ce061a104cd3f220903b16eac95cba39 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Thu, 29 Jan 2009 16:43:19 +0100 Subject: Stop complaints on printf argument types on MacOS. --- btpd/btpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btpd/btpd.c b/btpd/btpd.c index d3ee071..d193f7e 100644 --- a/btpd/btpd.c +++ b/btpd/btpd.c @@ -107,8 +107,8 @@ btpd_init(void) sigaction(SIGINT, &sa, NULL); gettimeofday(&now, NULL); - n = snprintf(idcon, sizeof(idcon), "%ld%ld%d", now.tv_sec, now.tv_usec, - net_port); + n = snprintf(idcon, sizeof(idcon), "%ld%ld%d", (long)now.tv_sec, + (long)now.tv_usec, net_port); if (n < sizeof(idcon)) gethostname(idcon + n, sizeof(idcon) - n); idcon[sizeof(idcon) - 1] = '\0'; -- cgit 1.4.1