[svn] Declare VALUE argument of fmtstr as const char *.

By Russ Allbery.
This commit is contained in:
hniksic 2005-04-17 09:53:55 -07:00
parent dccc4a2d49
commit 7c363df6b5
2 changed files with 7 additions and 2 deletions

View File

@ -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>
* snprintf.c (fmtfp): More correct handling of significant digit

View File

@ -165,7 +165,7 @@ int vsnprintf ();
static int dopr PARAMS ((char *buffer, size_t maxlen, const char *format,
va_list args));
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,
LLONG value, int base, int min, int max, int flags));
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
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 cnt = 0;