aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-09-29 10:32:58 -0700
committerkatherine <shmibs@shmibbles.me>2018-09-29 10:32:58 -0700
commit4ceade0519c41f3a75f25adb34600bfed80e0a68 (patch)
tree51e40e614a1a642316678b92aa1b210e24b73050
parent274369e625cd972aa95aa900eb861a6dc5a24712 (diff)
downloadsimple-opt-4ceade0519c41f3a75f25adb34600bfed80e0a68.tar.gz
mark size temp as const
not strictly necessary, but for consistency's sake
-rw-r--r--simple-opt.h4
1 files 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;