From: Daniel Stenberg Date: Thu, 26 Feb 2004 12:32:29 +0000 (+0000) Subject: use %ld when printf()ing long variables (and removed use of 'register') X-Git-Tag: curl-7_11_1~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d687eed33e33019eb6c0d534b5c097c78c4b1731;p=thirdparty%2Fcurl.git use %ld when printf()ing long variables (and removed use of 'register') --- diff --git a/lib/mprintf.c b/lib/mprintf.c index d56ef0301b..8956cb6ca9 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -611,7 +611,8 @@ static int dprintf_formatf( char alt; /* Width of a field. */ - register long width; + long width; + /* Precision of a field. */ long prec; @@ -913,11 +914,11 @@ static int dprintf_formatf( if(width >= 0) { /* RECURSIVE USAGE */ - fptr += curl_msprintf(fptr, "%d", width); + fptr += curl_msprintf(fptr, "%ld", width); } if(prec >= 0) { /* RECURSIVE USAGE */ - fptr += curl_msprintf(fptr, ".%d", prec); + fptr += curl_msprintf(fptr, ".%ld", prec); } if (p->flags & FLAGS_LONG) strcat(fptr, "l");