Use PROGNAME
This commit is contained in:
parent
4c1ceacae4
commit
8af6ec40a8
|
@ -26,6 +26,9 @@
|
|||
#define _(string) gettext(string)
|
||||
|
||||
/* constants */
|
||||
#ifndef PROGNAME
|
||||
# define PROGNAME "todo"
|
||||
#endif
|
||||
#ifndef PREFIX
|
||||
# define PREFIX "/usr/local"
|
||||
#endif
|
||||
|
@ -55,7 +58,7 @@ static int _todo(void)
|
|||
/* usage */
|
||||
static int _usage(void)
|
||||
{
|
||||
fputs(_("Usage: todo\n"), stderr);
|
||||
fprintf(stderr, _("Usage: %s\n"), PROGNAME);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user