Cleanup: Use dot notation for default options struct

This commit is contained in:
Martin Lund 2022-02-08 21:38:16 +01:00
parent c2024368a0
commit d35c607d1a

View file

@ -36,19 +36,19 @@
/* Default options */ /* Default options */
struct option_t option = struct option_t option =
{ {
"", // Device name .tty_device = "",
115200, // Baudrate .baudrate = 115200,
8, // Databits .databits = 8,
"none", // Flow .flow = "none",
1, // Stopbits .stopbits = 1,
"none", // Parity .parity = "none",
0, // No output delay .output_delay = 0,
false, // No autoconnect .no_autoconnect = false,
false, // No log .log = false,
false, // No local echo .local_echo = false,
false, // No timestamp .timestamp = false,
"", // Log filename .log_filename = "",
"" // Map string .map = ""
}; };
void print_help(char *argv[]) void print_help(char *argv[])