From 18b090df5a50847ae050488493b79b143041dcfe Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 24 Mar 2002 07:56:42 +0000 Subject: [PATCH] Got rid of unused-variable compiler warning. --- Src/builtin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/builtin.c b/Src/builtin.c index 372dcf8f4..18e95da24 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2912,7 +2912,7 @@ bin_print(char *name, char **args, char *ops, int func) int flen, width, prec, type, argc, n, narg; int nnl = 0, ret = 0, maxarg = 0; int flags[5], *len; - char *start, *endptr, *c, *d, *flag, *buf, *tmpf, spec[11], *fmt = NULL; + char *start, *endptr, *c, *d, *flag, *buf, spec[11], *fmt = NULL; char **first, *curarg, *flagch = "0+- #", save = '\0', nullstr = '\0'; size_t rcount, mcount, count = 0; FILE *fout = stdout; @@ -3123,7 +3123,7 @@ bin_print(char *name, char **args, char *ops, int func) if ((fout = open_memstream(&buf, &mcount)) == NULL) zwarnnam(name, "open_memstream failed", NULL, 0); #else - tmpf = gettempname(); + char *tmpf = gettempname(); if ((fout = fopen(tmpf, "w+")) == NULL) zwarnnam(name, "can't open temp file: %e", NULL, errno); unlink(tmpf);