From 364c3d6f019a26e68f2bfb9594d6bc599a947be2 Mon Sep 17 00:00:00 2001 From: N-R-K Date: Wed, 1 Jun 2022 01:40:49 +0000 Subject: 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 --- nsxiv.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'nsxiv.h') diff --git a/nsxiv.h b/nsxiv.h index 55041bd..1b11cba 100644 --- a/nsxiv.h +++ b/nsxiv.h @@ -366,11 +366,6 @@ spawn_t spawn(const char*, char *const [], unsigned int); #include #endif -enum { - BAR_L_LEN = 512, - BAR_R_LEN = 64 -}; - enum { ATOM_WM_DELETE_WINDOW, ATOM__NET_WM_NAME, -- cgit v1.2.3-70-g09d2