From 7aa7b34491de534da56d637552ee86f94f038cc3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 18 Nov 2011 23:22:12 -0800 Subject: sxpm: make ErrorMessage take const char * arg to fix -Wwrite-strings warnings Signed-off-by: Alan Coopersmith --- sxpm/sxpm.c | 4 ++-- 1 file 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; -- cgit v1.2.1