mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Declare VALUE argument of fmtstr as const char *.
By Russ Allbery.
This commit is contained in:
parent
dccc4a2d49
commit
7c363df6b5
@ -1,3 +1,8 @@
|
|||||||
|
2005-04-17 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* snprintf.c (fmtstr): Declare VALUE as const char *.
|
||||||
|
Based on patch by Russ Allbery.
|
||||||
|
|
||||||
2005-04-17 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-04-17 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* snprintf.c (fmtfp): More correct handling of significant digit
|
* snprintf.c (fmtfp): More correct handling of significant digit
|
||||||
|
@ -165,7 +165,7 @@ int vsnprintf ();
|
|||||||
static int dopr PARAMS ((char *buffer, size_t maxlen, const char *format,
|
static int dopr PARAMS ((char *buffer, size_t maxlen, const char *format,
|
||||||
va_list args));
|
va_list args));
|
||||||
static int fmtstr PARAMS ((char *buffer, size_t *currlen, size_t maxlen,
|
static int fmtstr PARAMS ((char *buffer, size_t *currlen, size_t maxlen,
|
||||||
char *value, int flags, int min, int max));
|
const char *value, int flags, int min, int max));
|
||||||
static int fmtint PARAMS ((char *buffer, size_t *currlen, size_t maxlen,
|
static int fmtint PARAMS ((char *buffer, size_t *currlen, size_t maxlen,
|
||||||
LLONG value, int base, int min, int max, int flags));
|
LLONG value, int base, int min, int max, int flags));
|
||||||
static int fmtfp PARAMS ((char *buffer, size_t *currlen, size_t maxlen,
|
static int fmtfp PARAMS ((char *buffer, size_t *currlen, size_t maxlen,
|
||||||
@ -502,7 +502,7 @@ dopr (char *buffer, size_t maxlen, const char *format, va_list args)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
fmtstr (char *buffer, size_t *currlen, size_t maxlen,
|
fmtstr (char *buffer, size_t *currlen, size_t maxlen,
|
||||||
char *value, int flags, int min, int max)
|
const char *value, int flags, int min, int max)
|
||||||
{
|
{
|
||||||
int padlen, strln; /* amount to pad */
|
int padlen, strln; /* amount to pad */
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user