summaryrefslogtreecommitdiff
path: root/src/app/config/config.c
diff options
context:
space:
mode:
authorDaniel Pinto <danielpinto52@gmail.com>2020-08-03 20:08:17 +0100
committerDaniel Pinto <danielpinto52@gmail.com>2020-08-03 20:08:17 +0100
commitccdd0d801ae952d4c8219eea9acdd3acfd438924 (patch)
treea62aab1be8e18804a7e9e5d7aea8a950567d1a0e /src/app/config/config.c
parent1474ab33956eefd9b75ef9a3e238ec7f855b8c7e (diff)
downloadtor-ccdd0d801ae952d4c8219eea9acdd3acfd438924.tar.gz
tor-ccdd0d801ae952d4c8219eea9acdd3acfd438924.zip
Minor style improvements. #30045
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r--src/app/config/config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 1c6d4acd3e..23f280891b 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -4434,9 +4434,8 @@ options_init_from_torrc(int argc, char **argv)
const char *v = format_line->value;
// keep the same order as enum key_expiration_format
const char *formats[] = { "iso8601", "timestamp" };
- const int formats_len = sizeof(formats) / sizeof(formats[0]);
int format = -1;
- for (int i = 0; i < formats_len; i++) {
+ for (unsigned i = 0; i < ARRAY_LENGTH(formats); i++) {
if (!strcmp(v, formats[i])) {
format = i;
break;