aboutsummaryrefslogtreecommitdiffstats
path: root/sgsnemu/cmdline.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-09-24 10:53:53 +0800
committerHarald Welte <laforge@gnumonks.org>2017-09-24 10:53:53 +0800
commit7e1175f6d8d96f5c45d3d880945895698d02d5a0 (patch)
tree58355d9f0ccdfcaa3ecf7076ece44420a05021fe /sgsnemu/cmdline.h
parentf621498129023a17f8023d1f865cfe66ba9c235a (diff)
sgsnemu: Fix gengetopt package name
gengetopt by default picks the program name from PACKAGE (autotools), which is osmo-ggsn and is obviously wrong in case of sgsnemu. After this patch, "sgsnemu --help" no longer shows "osmo-ggsn" but "sgsnemu" at the top of the help text. Change-Id: Ifabc2435a503ef71aa5a002ca46833f329068b37
Diffstat (limited to 'sgsnemu/cmdline.h')
-rw-r--r--sgsnemu/cmdline.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/sgsnemu/cmdline.h b/sgsnemu/cmdline.h
index 248384e..b93fa0b 100644
--- a/sgsnemu/cmdline.h
+++ b/sgsnemu/cmdline.h
@@ -21,16 +21,12 @@ extern "C" {
#ifndef CMDLINE_PARSER_PACKAGE
/** @brief the program name (used for printing errors) */
-#define CMDLINE_PARSER_PACKAGE PACKAGE
+#define CMDLINE_PARSER_PACKAGE "sgsnemu"
#endif
#ifndef CMDLINE_PARSER_PACKAGE_NAME
/** @brief the complete program name (used for help and version) */
-#ifdef PACKAGE_NAME
-#define CMDLINE_PARSER_PACKAGE_NAME PACKAGE_NAME
-#else
-#define CMDLINE_PARSER_PACKAGE_NAME PACKAGE
-#endif
+#define CMDLINE_PARSER_PACKAGE_NAME "sgsnemu"
#endif
#ifndef CMDLINE_PARSER_VERSION