[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix two compiler warnings when building spd-say.
From: |
Christopher Brannon |
Subject: |
[PATCH] Fix two compiler warnings when building spd-say. |
Date: |
Tue, 2 Nov 2010 12:15:24 +0000 |
We were overriding the definitions of PACKAGE and VERSION.
These come from config.h.
Instead, we should just define our own constants,
PROGRAM_NAME and PROGRAM_VERSION, for use within spd-say's help text.
---
src/clients/say/options.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/clients/say/options.c b/src/clients/say/options.c
index 4159dc6..9c34895 100644
--- a/src/clients/say/options.c
+++ b/src/clients/say/options.c
@@ -28,8 +28,8 @@
#include <config.h>
#endif
-#define PACKAGE "spd-say"
-#define VERSION "0.4"
+#define PROGRAM_NAME "spd-say"
+#define PROGRAM_VERSION "0.4"
#include <stdio.h>
#include <stdlib.h>
@@ -95,7 +95,7 @@ options_print_help(char *argv[])
void
options_print_version()
{
- printf("spd-say: "PACKAGE" "VERSION"\n");
+ printf("spd-say: " PROGRAM_NAME " " PROGRAM_VERSION "\n");
printf("Copyright (C) 2002-2006 Brailcom, o.p.s.\n"
"spd-say comes with ABSOLUTELY NO WARRANTY.\n"
"You may redistribute copies of spd-say\n"
--
1.7.3.2
- [PATCH] Fix two compiler warnings when building spd-say.,
Christopher Brannon <=