summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-18 23:22:12 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-18 23:22:12 -0800
commit7aa7b34491de534da56d637552ee86f94f038cc3 (patch)
treee1fe152adb7c12612b3eb7798813bf961c4493f8
parent4cedf181bcfe13e5d206554c51edb82cb17e7ad5 (diff)
sxpm: make ErrorMessage take const char * arg to fix -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--sxpm/sxpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sxpm/sxpm.c b/sxpm/sxpm.c
index 9585abe..a5eaa32 100644
--- a/sxpm/sxpm.c
+++ b/sxpm/sxpm.c
@@ -110,7 +110,7 @@ static char *plaid[] = {
static Colormap colormap;
void Usage(void);
-void ErrorMessage(int ErrorStatus, char *tag);
+void ErrorMessage(int ErrorStatus, const char *tag);
void Punt(int i);
void VersionInfo(void);
void kinput(Widget widget, char *tag, XEvent *xe, Boolean *b);
@@ -615,7 +615,7 @@ if no input is specified sxpm reads from standard input.\n\
void
ErrorMessage(
int ErrorStatus,
- char *tag)
+ const char *tag)
{
char *error = NULL;
char *warning = NULL;