From 4ceade0519c41f3a75f25adb34600bfed80e0a68 Mon Sep 17 00:00:00 2001 From: katherine Date: Sat, 29 Sep 2018 10:32:58 -0700 Subject: mark size temp as const not strictly necessary, but for consistency's sake --- simple-opt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-opt.h b/simple-opt.h index 56ff1f3..90b0b8d 100644 --- a/simple-opt.h +++ b/simple-opt.h @@ -27,7 +27,7 @@ /* an internal print buffer width for usage printing. you shouldn't have to * worry about this if you're sane */ #ifndef SIMPLE_OPT_PRINT_BUFFER_WIDTH -#define SIMPLE_OPT_PRINT_BUFFER_WIDTH 4096 +#define SIMPLE_OPT_PRINT_BUFFER_WIDTH 2048 #endif enum simple_opt_type { @@ -749,7 +749,7 @@ static void simple_opt_print_error(FILE *f, unsigned width, char *command_name, int rval; /* just easier to write */ - size_t size = SIMPLE_OPT_PRINT_BUFFER_WIDTH; + const size_t size = SIMPLE_OPT_PRINT_BUFFER_WIDTH; if (result.result_type == SIMPLE_OPT_RESULT_SUCCESS) return; -- cgit v1.2.3