phone: use PROGNAME_PHONE
This commit is contained in:
parent
4592dab0fd
commit
267e14eade
|
@ -54,8 +54,8 @@ static char const _license[] =
|
||||||
#define min(a, b) ((a) < (b) ? (a) : (b))
|
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||||
|
|
||||||
/* constants */
|
/* constants */
|
||||||
#ifndef PROGNAME
|
#ifndef PROGNAME_PHONE
|
||||||
# define PROGNAME "phone"
|
# define PROGNAME_PHONE "phone"
|
||||||
#endif
|
#endif
|
||||||
#ifndef PREFIX
|
#ifndef PREFIX
|
||||||
# define PREFIX "/usr/local"
|
# define PREFIX "/usr/local"
|
||||||
|
@ -653,7 +653,7 @@ int phone_error(Phone * phone, char const * message, int ret)
|
||||||
|
|
||||||
static int _error_text(char const * message, int ret)
|
static int _error_text(char const * message, int ret)
|
||||||
{
|
{
|
||||||
fprintf(stderr, PROGNAME ": %s\n", message);
|
fprintf(stderr, PROGNAME_PHONE ": %s\n", message);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user