diff options
author | Reuben Thomas <rrt@sc3d.org> | 2020-01-18 13:49:20 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2020-01-18 13:49:20 +0000 |
commit | 40482a284f30a8337b20527311a2008d65f266e9 (patch) | |
tree | 3072f262eb0d7c601a12cec51197b6a4f5d98640 /src | |
parent | 61c32ad4cc52e900336605d224c4ef46f808e416 (diff) | |
download | enchant-40482a284f30a8337b20527311a2008d65f266e9.tar.gz |
src/enchant.c: remove FILE * arg from print_help(): only stdout is used
Diffstat (limited to 'src')
-rw-r--r-- | src/enchant.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/enchant.c b/src/enchant.c index b1178f4..f1ba1d8 100644 --- a/src/enchant.c +++ b/src/enchant.c @@ -70,9 +70,9 @@ print_version (FILE * to) } static void -print_help (FILE * to, const char * prog) +print_help (const char * prog) { - fprintf (to, + fprintf (stdout, "Usage: %s [OPTION...] FILE\n\ -a lists suggestions in ispell pipe mode format\n\ -d DICTIONARY uses the given dictionary\n\ @@ -472,7 +472,7 @@ int main (int argc, char ** argv) print_version (stdout); } else if (mode == MODE_NONE && !file) { - print_help (stdout, argv[0]); + print_help (argv[0]); } else { if (file) { |