Using PROGNAME for properties(1)

This commit is contained in:
Pierre Pronchery 2014-08-06 01:13:40 +02:00
parent 12c70d8f09
commit fdc27351a3

View File

@ -38,6 +38,9 @@
#include "common.c" #include "common.c"
/* constants */ /* constants */
#ifndef PROGNAME
# define PROGNAME "properties"
#endif
#ifndef PREFIX #ifndef PREFIX
# define PREFIX "/usr/local" # define PREFIX "/usr/local"
#endif #endif
@ -385,7 +388,7 @@ static void _error_response(GtkWidget * widget, gint arg, gpointer data)
static int _error_text(char const * message, int ret) static int _error_text(char const * message, int ret)
{ {
fprintf(stderr, "%s: %s\n", "properties", message); fprintf(stderr, "%s: %s\n", PROGNAME, message);
return ret; return ret;
} }
@ -477,7 +480,7 @@ static gboolean _properties_on_closex(gpointer data)
/* usage */ /* usage */
static int _usage(void) static int _usage(void)
{ {
fputs(_("Usage: properties [-p plug-in] file...\n"), stderr); fprintf(stderr, _("Usage: %s [-p plug-in] file...\n"), PROGNAME);
return 1; return 1;
} }