Fix issues found with -Wstrict-prototypes

This commit is contained in:
Ryan Schmidt 2023-10-25 22:43:55 -05:00
parent e4815fe220
commit a54024f82a
3 changed files with 4 additions and 4 deletions

4
c2d.c
View File

@ -49,7 +49,7 @@ Bugs:
#define MONITOR 1
#define LOADER "loader"
void usage();
void usage(void);
char *getext(char *filename);
int main(int argc, char **argv)
@ -346,7 +346,7 @@ char *getext(char *filename)
return (rval);
}
void usage()
void usage(void)
{
fprintf(stderr, "%s", usagetext);
}

View File

@ -2,7 +2,7 @@
#define MASK 0x7F
int main()
int main(int argc, char **argv)
{
int i, j, k, line;
char screen[24][40];

View File

@ -3,7 +3,7 @@
#define NORMAL 0x80
#define BLINK 0x40
int main()
int main(int argc, char **argv)
{
char c;
int i, j, k, line = 0;