diff --git a/tools/iconlist.c b/tools/iconlist.c index 602eb9d..2303ea2 100644 --- a/tools/iconlist.c +++ b/tools/iconlist.c @@ -20,6 +20,10 @@ #include #include +#ifndef PROGNAME +# define PROGNAME "iconlist" +#endif + /* types */ typedef struct _Prefs @@ -195,8 +199,8 @@ static void _do_iconview(GtkWidget * iconview, GtkIconTheme * icontheme) /* usage */ static int _usage(void) { - fputs("Usage: iconlist [-t theme]\n" -" iconlist -l [-t theme]\n", stderr); + fputs("Usage: " PROGNAME " [-t theme]\n" +" " PROGNAME " -l [-t theme]\n", stderr); return 1; }