$NetBSD: patch-bb,v 1.2 2009/07/07 08:14:43 jnemeth Exp $ --- main/utils.c.orig 2009-03-18 07:32:47.000000000 -0700 +++ main/utils.c @@ -1348,13 +1348,13 @@ int ast_false(const char *s) static struct timeval tvfix(struct timeval a) { if (a.tv_usec >= ONE_MILLION) { - ast_log(LOG_WARNING, "warning too large timestamp %ld.%ld\n", - (long)a.tv_sec, (long int) a.tv_usec); + ast_log(LOG_WARNING, "warning too large timestamp %jd.%ld\n", + (intmax_t)a.tv_sec, (long int) a.tv_usec); a.tv_sec += a.tv_usec / ONE_MILLION; a.tv_usec %= ONE_MILLION; } else if (a.tv_usec < 0) { - ast_log(LOG_WARNING, "warning negative timestamp %ld.%ld\n", - (long)a.tv_sec, (long int) a.tv_usec); + ast_log(LOG_WARNING, "warning negative timestamp %jd.%ld\n", + (intmax_t)a.tv_sec, (long int) a.tv_usec); a.tv_usec = 0; } return a;