diff options
author | N-R-K <nrk@disroot.org> | 2022-06-01 01:40:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 07:40:49 +0600 |
commit | 364c3d6f019a26e68f2bfb9594d6bc599a947be2 (patch) | |
tree | f72a5a8153290c684c801154d87045370c7e9000 /nsxiv.h | |
parent | 57ff8afe028267f71111d28278770fc9bac9baff (diff) |
avoid doing dynamic allocation for bar buffers (#279)
just use a static buffer since the size is constant and doesn't change.
as opposed to using malloc, this also sets the buffer's initial memory
region to 0 by default.
also remove BAR_{L,R}_LEN from nsxiv.h, not needed after commit b4268fbf38d1f8433c73999466e116e68c7f81e7
Diffstat (limited to 'nsxiv.h')
-rw-r--r-- | nsxiv.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -367,11 +367,6 @@ spawn_t spawn(const char*, char *const [], unsigned int); #endif enum { - BAR_L_LEN = 512, - BAR_R_LEN = 64 -}; - -enum { ATOM_WM_DELETE_WINDOW, ATOM__NET_WM_NAME, ATOM__NET_WM_ICON_NAME, |