1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-03 07:10:39 +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

@@ -67,7 +67,7 @@ unsigned long modify(long unsigned int hostid);
/* */
/************************************************************************/
writeresults(FILE *fp, char *host, char *expdate, int key1, int key2, int key3, char *info)
void writeresults(FILE *fp, char *host, char *expdate, int key1, int key2, int key3, char *info)
{
fprintf(fp, "Host ID: %-14s Expiration: %-9s",host, expdate);
fprintf(fp, " Key: %8x %8x %8x", key1, key2, key3);
@@ -84,7 +84,7 @@ writeresults(FILE *fp, char *host, char *expdate, int key1, int key2, int key3,
/* */
/************************************************************************/
main(int argc, char **argv)
int main(int argc, char **argv)
{
int logfile = 0; /* set to 1 if logfile on command line */
FILE *fp; /* file pointer for the logfile */
@@ -227,6 +227,7 @@ main(int argc, char **argv)
if (commandlineargs)
{
printf("%8x %8x %8x\n", *keyarray, *(keyarray+1), *(keyarray+2));
exit(1);
}
else
{