From 2854aec799f70255f922440c3454694193f19084 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 12 Sep 2020 19:31:58 +0200 Subject: [PATCH] Use PACKAGE_BUGREPORT instead of a literal string --- tests/data/datasheet-test.c | 7 +++---- tests/libpspp/sparse-xarray-test.c | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/data/datasheet-test.c b/tests/data/datasheet-test.c index 87ac1b9a16..1310f51337 100644 --- a/tests/data/datasheet-test.c +++ b/tests/data/datasheet-test.c @@ -855,10 +855,9 @@ usage (void) " other values are string widths (0,1,11)\n", program_name, program_name); mc_options_usage (); - fputs ("\nOther options:\n" - " --help Display this help message\n" - "\nReport bugs to \n", - stdout); + printf ("\nOther options:\n" + " --help Display this help message\n" + "\nReport bugs to <%s>\n", PACKAGE_BUGREPORT); exit (0); } diff --git a/tests/libpspp/sparse-xarray-test.c b/tests/libpspp/sparse-xarray-test.c index 5354211230..47b338a65d 100644 --- a/tests/libpspp/sparse-xarray-test.c +++ b/tests/libpspp/sparse-xarray-test.c @@ -472,10 +472,9 @@ usage (void) " --no-copy-columns Do not copy column ranges in an xarray\n", program_name, program_name); mc_options_usage (); - fputs ("\nOther options:\n" + printf ("\nOther options:\n" " --help Display this help message\n" - "\nReport bugs to \n", - stdout); + "\nReport bugs to <%s>\n", PACKAGE_BUGREPORT); exit (0); } -- 2.30.2