aboutsummaryrefslogtreecommitdiff
path: root/run.c
diff options
context:
space:
mode:
authorChris <christopherwuy@gmail.com>2020-08-07 18:10:20 +0800
committerGitHub <noreply@github.com>2020-08-07 13:10:20 +0300
commitb78514101907978f7776df1b5d95dac8a7798129 (patch)
treed4cfa72e1f6c9de5ea4b6c8aafb1c69cf307e32e /run.c
parent1b3984634f0ac427443b30fccf58d8140e07af96 (diff)
downloadone-true-awk-b78514101907978f7776df1b5d95dac8a7798129.tar.gz
printf: The argument p shall be a pointer to void. (#93)
Diffstat (limited to 'run.c')
-rw-r--r--run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/run.c b/run.c
index ae17756..01b4597 100644
--- a/run.c
+++ b/run.c
@@ -119,7 +119,7 @@ int adjbuf(char **pbuf, int *psiz, int minlen, int quantum, char **pbptr,
if (rminlen)
minlen += quantum - rminlen;
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 (whatrtn)
FATAL("out of memory in %s", whatrtn);
@@ -1843,7 +1843,7 @@ const char *filename(FILE *fp)
Cell *x;
size_t i;
bool stat;
-
+
x = execute(a[0]);
getsval(x);
stat = true;