From ad51983b23c0b38790213e0fe75fc76fea019b83 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 9 Mar 2023 10:53:09 +0300 Subject: [PATCH] xwm: make atom_map static --- include/xwayland/xwm.h | 2 -- xwayland/xwm.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index c69504e8..3d540522 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -91,8 +91,6 @@ enum atom_name { ATOM_LAST // keep last }; -extern const char *const atom_map[ATOM_LAST]; - struct wlr_xwm { struct wlr_xwayland *xwayland; struct wl_event_source *event_source; diff --git a/xwayland/xwm.c b/xwayland/xwm.c index ac615ffe..4d40f740 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -19,7 +19,7 @@ #include #include "xwayland/xwm.h" -const char *const atom_map[ATOM_LAST] = { +static const char *const atom_map[ATOM_LAST] = { [WL_SURFACE_ID] = "WL_SURFACE_ID", [WL_SURFACE_SERIAL] = "WL_SURFACE_SERIAL", [WM_DELETE_WINDOW] = "WM_DELETE_WINDOW",