summaryrefslogtreecommitdiffstats
path: root/src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c
index e80bc94..09a21b9 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -9,6 +9,7 @@
******************************************************************************/
#include "coins/parse.h"
+#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -23,7 +24,6 @@
/******************************************************************************
******* macros ***************************************************************
******************************************************************************/
-#define PROG_NAME "coins"
#define PROG_YEAR "2018"
#define OPT_LIST "hLuv""f:"
@@ -132,7 +132,7 @@ void parse_file (char fname[static restrict FILENAME_MAX], char *arg)
static
void print_version (void)
{
- printf("%s %s\n\n", PROG_NAME, PROG_VERSION);
+ printf("%s %s\n\n", program_invocation_short_name, PROG_VERSION);
}