summaryrefslogtreecommitdiff
path: root/dsimple.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-19 23:33:19 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-19 23:33:23 -0700
commit9c9ae7363d216933394e6ccd2ba6e0196845a6c6 (patch)
tree3babfb4c0b94ae7f006a9c2420e1f273d583abca /dsimple.c
parentc22c121262efcaca5f58774072ac84e1006e43aa (diff)
Fix gcc warnings about discarding const qualifiers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'dsimple.c')
-rw-r--r--dsimple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dsimple.c b/dsimple.c
index fa31f14..d2d52a4 100644
--- a/dsimple.c
+++ b/dsimple.c
@@ -54,7 +54,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;
@@ -318,7 +318,7 @@ Window Window_With_Name(
* printf with up to 7 arguments.
*/
void
-outl(char *msg, ...)
+outl(const char *msg, ...)
{
va_list args;
fflush(stdout);
@@ -334,7 +334,7 @@ outl(char *msg, ...)
* 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);