From f94570d01c45715e3c0c45006393c94f2e14d00c Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Mon, 7 Dec 2020 15:22:47 -0800 Subject: [PATCH] Fix warning for missing function prototype in keymaker.c --- src/keymaker.c | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/keymaker.c b/src/keymaker.c index 89a0089..07e4690 100644 --- a/src/keymaker.c +++ b/src/keymaker.c @@ -13,7 +13,7 @@ static const char *id = "$Id: keymaker.c,v 1.3 1999/05/31 23:35:35 sybalsky Exp /* ===================================================================== This function is used to generate copyright protection keys for - enue's Medley software. It prompts for a machine's host id and + Venue's Medley software. It prompts for a machine's host id and the software's expiration date before generating a set of 3 keys. The external functions called were stored in file 'keylib.o'. @@ -43,22 +43,9 @@ static const char *id = "$Id: keymaker.c,v 1.3 1999/05/31 23:35:35 sybalsky Exp #define FAILURE2 -2 #define FAILURE3 -3 -/************************************************************************/ -/* */ -/* w r i t e r e s u l t s */ -/* */ -/* Prints the newly-generated key, along with identifying info */ -/* */ -/************************************************************************/ - void writeresults(FILE *fp, char *host, char *expdate, unsigned long key1, unsigned long key2, unsigned long key3, - char *info) { - fprintf(fp, "Host ID: %-14s Expiration: %-9s", host, expdate); - fprintf(fp, " Key: %8lx %8lx %8lx", key1, key2, key3); - fprintf(fp, " Doc: %s\n", info); -} - + char *info); /************************************************************************/ /* */ /* */ @@ -184,3 +171,19 @@ int main(int argc, char **argv) { }; exit(0); } + +/************************************************************************/ +/* */ +/* w r i t e r e s u l t s */ +/* */ +/* Prints the newly-generated key, along with identifying info */ +/* */ +/************************************************************************/ + +void writeresults(FILE *fp, char *host, char *expdate, + unsigned long key1, unsigned long key2, unsigned long key3, + char *info) { + fprintf(fp, "Host ID: %-14s Expiration: %-9s", host, expdate); + fprintf(fp, " Key: %8lx %8lx %8lx", key1, key2, key3); + fprintf(fp, " Doc: %s\n", info); +}