Fix warnings detected by clang when compiling c2str.

This commit is contained in:
Christian Jullien 2020-12-30 08:57:30 +01:00
parent cc40305a12
commit c13c434383

View file

@ -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;