From 5f95ef9a6781438d37abdfefa08a53387f0620c9 Mon Sep 17 00:00:00 2001 From: N1xis10t <88343908+N1xis10t@users.noreply.github.com> Date: Wed, 25 Aug 2021 09:38:01 -0600 Subject: [PATCH] printversion() can only go to stdout now --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 0bc8ee5..d1591f3 100644 --- a/main.c +++ b/main.c @@ -130,9 +130,9 @@ static void printhelp(FILE *out,const char *progname) fflush(out); } -static void printversion(FILE *out) +static void printversion(void) { - fprintf(out, + fprintf(stdout, "mkp224o 1.5.0\n" "Copyright (C) 2021 cathugger\n" "License public domain:\n" @@ -144,7 +144,7 @@ static void printversion(FILE *out) "Please visit the mkp224o home page to find additional acknowledgements:\n" "\n" ); - fflush(out); + fflush(stdout); } static void e_additional(void) @@ -279,7 +279,7 @@ int main(int argc,char **argv) else if (!strcmp(arg,"rawyaml")) yamlraw = 1; else if (!strcmp(arg,"version")) { - printversion(stdout); + printversion(); exit(0); } else {