summaryrefslogtreecommitdiff
path: root/src/twm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/twm.c')
-rw-r--r--src/twm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/twm.c b/src/twm.c
index 045622b..c3b002c 100644
--- a/src/twm.c
+++ b/src/twm.c
@@ -162,7 +162,7 @@ Atom TwmAtoms[11];
Bool use_fontset; /* use XFontSet-related functions or not */
/* don't change the order of these strings */
-static char *atom_names[11] = {
+static const char *atom_names[11] = {
"_MIT_PRIORITY_COLORS",
"WM_CHANGE_STATE",
"WM_STATE",
@@ -348,7 +348,8 @@ main(int argc, char *argv[])
ScreenContext = XUniqueContext();
ColormapContext = XUniqueContext();
- (void) XInternAtoms(dpy, atom_names, sizeof TwmAtoms / sizeof TwmAtoms[0],
+ (void) XInternAtoms(dpy, (char **) atom_names,
+ sizeof TwmAtoms / sizeof TwmAtoms[0],
False, TwmAtoms);
/* Set up the per-screen global information. */