From a5841506c715b10cf44a736e44909b3cfc5eabff Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 16 Oct 2017 17:53:33 +0200 Subject: [PATCH] Use PROGNAME_PROPERTIES for properties(1) --- src/properties.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/properties.c b/src/properties.c index 93004b7..e412bdd 100644 --- a/src/properties.c +++ b/src/properties.c @@ -52,8 +52,8 @@ #include "common.c" /* constants */ -#ifndef PROGNAME -# define PROGNAME "properties" +#ifndef PROGNAME_PROPERTIES +# define PROGNAME_PROPERTIES "properties" #endif #ifndef PREFIX # define PREFIX "/usr/local" @@ -401,7 +401,7 @@ static void _error_response(GtkWidget * widget, gint arg, gpointer data) static int _error_text(char const * message, int ret) { - fprintf(stderr, "%s: %s\n", PROGNAME, message); + fprintf(stderr, "%s: %s\n", PROGNAME_PROPERTIES, message); return ret; } @@ -493,7 +493,8 @@ static gboolean _properties_on_closex(gpointer data) /* usage */ static int _usage(void) { - fprintf(stderr, _("Usage: %s [-p plug-in] file...\n"), PROGNAME); + fprintf(stderr, _("Usage: %s [-p plug-in] file...\n"), + PROGNAME_PROPERTIES); return 1; }