projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38b6016
)
use %ld when printf()ing long variables (and removed use of 'register')
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 26 Feb 2004 12:32:29 +0000
(12:32 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 26 Feb 2004 12:32:29 +0000
(12:32 +0000)
lib/mprintf.c
patch
|
blob
|
history
diff --git
a/lib/mprintf.c
b/lib/mprintf.c
index
d56ef03
..
8956cb6
100644
(file)
--- 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, "%
l
d", width);
}
if(prec >= 0) {
/* RECURSIVE USAGE */
- fptr += curl_msprintf(fptr, ".%d", prec);
+ fptr += curl_msprintf(fptr, ".%
l
d", prec);
}
if (p->flags & FLAGS_LONG)
strcat(fptr, "l");