summaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/printf.c b/src/printf.c
index b10505575..ab3ae2d6a 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -52,6 +52,11 @@
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "printf"
+
+#define AUTHORS "David MacKenzie"
+
#ifndef STDC_HEADERS
double strtod ();
long int strtol ();
@@ -491,8 +496,8 @@ main (int argc, char **argv)
/* Don't recognize --help or --version if POSIXLY_CORRECT is set. */
posixly_correct = (getenv ("POSIXLY_CORRECT") != NULL);
if (!posixly_correct)
- parse_long_options (argc, argv, "printf", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc == 1)
{