diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 12:32:29 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 12:32:29 +0000 |
commit | d687eed33e33019eb6c0d534b5c097c78c4b1731 (patch) | |
tree | a1c79f55b05d403702607415fee4e7a781c10f67 | |
parent | 38b6016dfa73aaf55b328c584b9add49375d4fb7 (diff) |
use %ld when printf()ing long variables (and removed use of 'register')
-rw-r--r-- | lib/mprintf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index d56ef0301..8956cb6ca 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"); |