diff --git a/src/options.c b/src/options.c index 8d552ea..19a992d 100644 --- a/src/options.c +++ b/src/options.c @@ -101,10 +101,14 @@ void print_help(char *argv[]) printf("See the man page for more details.\n"); } -const char* timestamp_token(enum timestamp_t timestamp) +const char* timestamp_state(enum timestamp_t timestamp) { switch (timestamp) { + case TIMESTAMP_NONE: + return "disabled"; + break; + case TIMESTAMP_24HOUR: return "24hour"; break; @@ -163,7 +167,7 @@ void options_print() tio_printf(" Stopbits: %d", option.stopbits); tio_printf(" Parity: %s", option.parity); tio_printf(" Local echo: %s", option.local_echo ? "enabled" : "disabled"); - tio_printf(" Timestamps: %s", timestamp_token(option.timestamp)); + tio_printf(" Timestamp: %s", timestamp_state(option.timestamp)); tio_printf(" Output delay: %d", option.output_delay); tio_printf(" Auto connect: %s", option.no_autoconnect ? "disabled" : "enabled"); if (option.map[0] != 0) diff --git a/src/options.h b/src/options.h index 63476b0..4893671 100644 --- a/src/options.h +++ b/src/options.h @@ -36,7 +36,6 @@ enum timestamp_t TIMESTAMP_END, }; -const char* timestamp_token(enum timestamp_t timestamp); enum timestamp_t timestamp_option_parse(const char *arg); /* Options */