From b096cbd536b94ee848b94d873d0c0a898f574af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Wed, 28 Oct 2015 22:23:28 +0100 Subject: Removed unnecessary buffer size constants --- main.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 96ea947..f0f2e89 100644 --- a/main.c +++ b/main.c @@ -42,11 +42,6 @@ #define _MAPPINGS_CONFIG #include "config.h" -enum { - FILENAME_CNT = 1024, - TITLE_LEN = 256 -}; - typedef struct { const char *name; char *cmd; @@ -348,7 +343,7 @@ void bar_put(win_bar_t *bar, const char *fmt, ...) void update_info(void) { unsigned int i, fn, fw; - char title[TITLE_LEN]; + char title[256]; const char * mark; bool ow_info; win_bar_t *l = &win.bar.l, *r = &win.bar.r; @@ -801,7 +796,7 @@ int main(int argc, char **argv) } if (options->recursive || options->from_stdin) - filecnt = FILENAME_CNT; + filecnt = 1024; else filecnt = options->filecnt; -- cgit v1.2.3