From 41c307c3b0bd83a516d1418d28fd0fdab2acab04 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sun, 14 Jan 2007 20:22:59 +0000 Subject: [PATCH] Cast types for mrtg_scrape sprintf --- opentracker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opentracker.c b/opentracker.c index 2579ab8..8c53452 100644 --- a/opentracker.c +++ b/opentracker.c @@ -271,9 +271,9 @@ e500: { time_t seconds_elapsed = time( NULL ) - ot_start_time; reply_size = sprintf( static_reply + SUCCESS_HTTP_HEADER_LENGTH, - "%d\n%d\nUp: %ld seconds (%ld hours)\nPretuned by german engineers, currently handling %li connections per second.", - ot_overall_connections, ot_overall_connections, seconds_elapsed, - seconds_elapsed / 3600, ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) ); + "%i\n%i\nUp: %i seconds (%i hours)\nPretuned by german engineers, currently handling %i connections per second.", + ot_overall_connections, ot_overall_connections, (int)seconds_elapsed, + (int)(seconds_elapsed / 3600), ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) ); } break; default: /* neither *scrape nor announce */