diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-02-04 08:33:08 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-05 10:04:20 +0100 |
commit | 79be26ff1f7da3be4548b000cb93f6f8e4a61242 (patch) | |
tree | 605c53e55f8b180e3a3ced11bad47bace4cfb6ac | |
parent | b86eea0897792d569115eb7e946719869346d0d3 (diff) |
xwayland/xwm: make atom_map const
-rw-r--r-- | include/xwayland/xwm.h | 2 | ||||
-rw-r--r-- | xwayland/xwm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index d12eb681..24549644 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -86,7 +86,7 @@ enum atom_name { ATOM_LAST // keep last }; -extern const char *atom_map[ATOM_LAST]; +extern const char *const atom_map[ATOM_LAST]; struct wlr_xwm { struct wlr_xwayland *xwayland; diff --git a/xwayland/xwm.c b/xwayland/xwm.c index cfc192f5..6ddc10d2 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -18,7 +18,7 @@ #include "util/signal.h" #include "xwayland/xwm.h" -const char *atom_map[ATOM_LAST] = { +const char *const atom_map[ATOM_LAST] = { [WL_SURFACE_ID] = "WL_SURFACE_ID", [WM_DELETE_WINDOW] = "WM_DELETE_WINDOW", [WM_PROTOCOLS] = "WM_PROTOCOLS", |