History

Fix warnings detected by clang when compiling c2str.

Christian Jullien committed 5 years ago

Commit c13c4341 parent cc403051 file · +2 −2Browse files

Unified · Split

tests/misc/c2str.c+2−2
@@ -36,7 +36,7 @@ int isspc(int c) · 35 unmodified lines
3636
3737 int main(int argc, char **argv)
3838 {
39− unsigned char l[1000], l2[1000], *p, *q, *p0;
39+ char l[1000], l2[1000], *p, *q, *p0;
4040 FILE *fp, *op;
4141 int c, e, f, cmt, cmt_n;
4242 const char *r;
@@ -84,7 +84,7 @@ int main(int argc, char **argv) · 41 unmodified lines
8484 if (cmt) {
8585 fprintf(op, "%s", l);
8686 if (++cmt_n == 1)
87− fprintf(op, " (converted, do not edit this file)", l);
87+ fprintf(op, " (converted, do not edit this file)");
8888 fprintf(op, "\n");
8989 if (cmt == 1)
9090 cmt = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t