ext2sim: Ensure main() have return type and arguments

This commit is contained in:
Darryl L. Miles 2025-07-18 12:40:39 +01:00 committed by R. Timothy Edwards
parent 22e8ab847c
commit bb6e55efb1
2 changed files with 4 additions and 1 deletions

View File

@ -46,6 +46,7 @@ endmatch(
return (0); return (0);
} }
int
main( main(
int argc, int argc,
char *argv[]) char *argv[])
@ -75,6 +76,7 @@ main(
HashStartSearch(&hs); HashStartSearch(&hs);
while (he = HashNext(&ht, &hs)) while (he = HashNext(&ht, &hs))
printf("%s\n", he->h_key.h_name); printf("%s\n", he->h_key.h_name);
return 0;
} }
char * char *

View File

@ -121,7 +121,8 @@ addMos(
} }
main () int
main (int argc, char *argv[])
{ {
int i; int i;
char str[STRLEN]; char str[STRLEN];