1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-05-01 06:09:21 +00:00

Fix missing return types on functions, convert some functions with always ignored results to void.

This commit is contained in:
Nick Briggs
2017-05-28 15:08:42 -07:00
parent 65ddb5a968
commit 691645d048
83 changed files with 587 additions and 549 deletions

View File

@@ -42,18 +42,7 @@ extern int errno;
/* JDS protoize char *valloc(size_t); */
main(int argc, char **argv)
{
if (argc != 2)
{
printf("You forgot to supply a file name.");
return(-1);
}
check_sysout(argv[1]);
exit(0);
}
check_sysout(char *sysout_file_name)
void check_sysout(char *sysout_file_name)
{
int sysout; /* SysoutFile descriptor */
@@ -91,3 +80,15 @@ check_sysout(char *sysout_file_name)
close(sysout);
printf("%d", ifpage.minbversion);
}
int main(int argc, char **argv)
{
if (argc != 2)
{
printf("You forgot to supply a file name.");
return(-1);
}
check_sysout(argv[1]);
exit(0);
}