mirror of
https://github.com/curl/curl.git
synced 2025-09-17 01:22:41 +03:00
stricter variable type usage
This commit is contained in:
parent
0c791d1e76
commit
f8426a2c44
|
@ -122,8 +122,8 @@ enum {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
FormatType type;
|
FormatType type;
|
||||||
int flags;
|
int flags;
|
||||||
int width; /* width OR width parameter number */
|
long width; /* width OR width parameter number */
|
||||||
int precision; /* precision OR precision parameter number */
|
long precision; /* precision OR precision parameter number */
|
||||||
union {
|
union {
|
||||||
char *str;
|
char *str;
|
||||||
void *ptr;
|
void *ptr;
|
||||||
|
@ -281,7 +281,8 @@ int dprintf_Pass1Report(va_stack_t *vto, int max)
|
||||||
*
|
*
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
static int dprintf_Pass1(char *format, va_stack_t *vto, char **endpos, va_list arglist)
|
static long dprintf_Pass1(char *format, va_stack_t *vto, char **endpos,
|
||||||
|
va_list arglist)
|
||||||
{
|
{
|
||||||
char *fmt = format;
|
char *fmt = format;
|
||||||
int param_num = 0;
|
int param_num = 0;
|
||||||
|
@ -681,7 +682,7 @@ static int dprintf_formatf(
|
||||||
else
|
else
|
||||||
prec = -1;
|
prec = -1;
|
||||||
|
|
||||||
alt = p->flags & FLAGS_ALT;
|
alt = (p->flags & FLAGS_ALT)?TRUE:FALSE;
|
||||||
|
|
||||||
switch (p->type) {
|
switch (p->type) {
|
||||||
case FORMAT_INT:
|
case FORMAT_INT:
|
||||||
|
@ -1042,7 +1043,7 @@ static int alloc_addbyter(int output, FILE *data)
|
||||||
infop->alloc *= 2;
|
infop->alloc *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
infop->buffer[ infop->len ] = output;
|
infop->buffer[ infop->len ] = (char)output;
|
||||||
|
|
||||||
infop->len++;
|
infop->len++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user