From 267e14eade2b414389918936c46f6d0b82b4886f Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 22 Nov 2023 22:16:38 +0100 Subject: [PATCH] phone: use PROGNAME_PHONE --- src/phone.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/phone.c b/src/phone.c index 9917149..7baaa8e 100644 --- a/src/phone.c +++ b/src/phone.c @@ -54,8 +54,8 @@ static char const _license[] = #define min(a, b) ((a) < (b) ? (a) : (b)) /* constants */ -#ifndef PROGNAME -# define PROGNAME "phone" +#ifndef PROGNAME_PHONE +# define PROGNAME_PHONE "phone" #endif #ifndef PREFIX # 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) { - fprintf(stderr, PROGNAME ": %s\n", message); + fprintf(stderr, PROGNAME_PHONE ": %s\n", message); return ret; }