From c13c434383c7bdd88f5e439d72f4c161c03b9ec9 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Wed, 30 Dec 2020 08:57:30 +0100 Subject: [PATCH] Fix warnings detected by clang when compiling c2str. --- tests/misc/c2str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/misc/c2str.c b/tests/misc/c2str.c index 9a6ab0da..71f242bc 100644 --- a/tests/misc/c2str.c +++ b/tests/misc/c2str.c @@ -36,7 +36,7 @@ int isspc(int c) int main(int argc, char **argv) { - unsigned char l[1000], l2[1000], *p, *q, *p0; + char l[1000], l2[1000], *p, *q, *p0; FILE *fp, *op; int c, e, f, cmt, cmt_n; const char *r; @@ -84,7 +84,7 @@ int main(int argc, char **argv) if (cmt) { fprintf(op, "%s", l); if (++cmt_n == 1) - fprintf(op, " (converted, do not edit this file)", l); + fprintf(op, " (converted, do not edit this file)"); fprintf(op, "\n"); if (cmt == 1) cmt = 0;