diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 23:16:53 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 23:16:53 -0800 |
commit | 1dd99ee7d52871c998d0944311260623d131521f (patch) | |
tree | 90afd0eacff420d56a515f3d69b5d94662a17780 /dsimple.c | |
parent | 862292d9509856cfd311f9741db059b92a5fd78a (diff) |
Fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'dsimple.c')
-rw-r--r-- | dsimple.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -55,7 +55,7 @@ from The Open Group. /* This stuff is defined in the calling program by just_display.h */ -char *program_name = "unknown_program"; +const char *program_name = "unknown_program"; Display *dpy = NULL; int screen = 0; @@ -147,7 +147,7 @@ void Close_Display(void) * Standard fatal error routine - call like printf but maximum of 7 arguments. * Does not require dpy or screen defined. */ -void Fatal_Error(char *msg, ...) +void Fatal_Error(const char *msg, ...) { va_list args; fflush(stdout); |