diff options
author | Tim Wiederhake <twied@gmx.net> | 2024-01-01 12:22:46 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-01-01 12:22:46 +0100 |
commit | f810178b1fae09be1ac15e223a84ddf2031eb93f (patch) | |
tree | 0980c9a0cff598c175d783b55be4c924d862a92a | |
parent | c7eeb055125892fdea94491e57bc26fa61258a71 (diff) |
Make atom_names const correct
Silence some "initialization discards 'const' qualifier from pointer
target type" warnings.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
-rw-r--r-- | src/twm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. */ |