printf: The argument p shall be a pointer to void. (#93)
This commit is contained in:
parent
1b3984634f
commit
b785141019
2
run.c
2
run.c
@ -119,7 +119,7 @@ int adjbuf(char **pbuf, int *psiz, int minlen, int quantum, char **pbptr,
|
|||||||
if (rminlen)
|
if (rminlen)
|
||||||
minlen += quantum - rminlen;
|
minlen += quantum - rminlen;
|
||||||
tbuf = realloc(*pbuf, minlen);
|
tbuf = realloc(*pbuf, minlen);
|
||||||
DPRINTF("adjbuf %s: %d %d (pbuf=%p, tbuf=%p)\n", whatrtn, *psiz, minlen, *pbuf, tbuf);
|
DPRINTF("adjbuf %s: %d %d (pbuf=%p, tbuf=%p)\n", whatrtn, *psiz, minlen, (void*)*pbuf, (void*)tbuf);
|
||||||
if (tbuf == NULL) {
|
if (tbuf == NULL) {
|
||||||
if (whatrtn)
|
if (whatrtn)
|
||||||
FATAL("out of memory in %s", whatrtn);
|
FATAL("out of memory in %s", whatrtn);
|
||||||
|
6
tran.c
6
tran.c
@ -361,7 +361,7 @@ char *setsval(Cell *vp, const char *s) /* set string val of a Cell */
|
|||||||
fldno = atoi(vp->nval);
|
fldno = atoi(vp->nval);
|
||||||
if (fldno > *NF)
|
if (fldno > *NF)
|
||||||
newfld(fldno);
|
newfld(fldno);
|
||||||
DPRINTF("setting field %d to %s (%p)\n", fldno, s, s);
|
DPRINTF("setting field %d to %s (%p)\n", fldno, s, (const void*)s);
|
||||||
} else if (isrec(vp)) {
|
} else if (isrec(vp)) {
|
||||||
donefld = false; /* mark $1... invalid */
|
donefld = false; /* mark $1... invalid */
|
||||||
donerec = true;
|
donerec = true;
|
||||||
@ -378,7 +378,7 @@ char *setsval(Cell *vp, const char *s) /* set string val of a Cell */
|
|||||||
vp->fmt = NULL;
|
vp->fmt = NULL;
|
||||||
setfree(vp);
|
setfree(vp);
|
||||||
DPRINTF("setsval %p: %s = \"%s (%p) \", t=%o r,f=%d,%d\n",
|
DPRINTF("setsval %p: %s = \"%s (%p) \", t=%o r,f=%d,%d\n",
|
||||||
(void*)vp, NN(vp->nval), t, t, vp->tval, donerec, donefld);
|
(void*)vp, NN(vp->nval), t, (void*)t, vp->tval, donerec, donefld);
|
||||||
vp->sval = t;
|
vp->sval = t;
|
||||||
if (&vp->fval == NF) {
|
if (&vp->fval == NF) {
|
||||||
donerec = false; /* mark $0 invalid */
|
donerec = false; /* mark $0 invalid */
|
||||||
@ -492,7 +492,7 @@ static char *get_str_val(Cell *vp, char **fmt) /* get string val of a Cel
|
|||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
DPRINTF("getsval %p: %s = \"%s (%p)\", t=%o\n",
|
DPRINTF("getsval %p: %s = \"%s (%p)\", t=%o\n",
|
||||||
(void*)vp, NN(vp->nval), vp->sval, vp->sval, vp->tval);
|
(void*)vp, NN(vp->nval), vp->sval, (void*)vp->sval, vp->tval);
|
||||||
return(vp->sval);
|
return(vp->sval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user