From 50c854a0abbb5a741c35b718bb1bf04eb84985d5 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Wed, 20 Dec 2017 20:27:24 +0100 Subject: Define PROGRAM_NAME --- colorize.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/colorize.c b/colorize.c index 9e0f574..012a376 100644 --- a/colorize.c +++ b/colorize.c @@ -122,6 +122,8 @@ #define MAX_ATTRIBUTE_CHARS (6 * 2) +#define PROGRAM_NAME "colorize" + #define VERSION "0.63" typedef enum { false, true } bool; @@ -597,7 +599,7 @@ print_version (void) #endif version_prefix = version ? "" : "v"; version_string = version ? version : VERSION; - printf ("colorize %s%s (compiled at %s, %s)\n", version_prefix, version_string, __DATE__, __TIME__); + printf ("%s %s%s (compiled at %s, %s)\n", PROGRAM_NAME, version_prefix, version_string, __DATE__, __TIME__); printf ("Compiler flags: %s\n", c_flags); printf ("Linker flags: %s\n", ld_flags); -- cgit v1.2.3