aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2020-11-30 02:24:38 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2020-11-30 02:24:38 +0000
commitadde947fc5ffc3d143040a984d0907262ac279bc (patch)
tree1b29a75414035349d6178509e5660d917484cbc0 /main.c
parentMerge branch 'base64-optimize' (diff)
config: replace union in config struct with simple width/height members
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/main.c b/main.c
index ebd73f20..ab595d22 100644
--- a/main.c
+++ b/main.c
@@ -399,18 +399,8 @@ main(int argc, char *const *argv)
}
if (conf_width > 0 && conf_height > 0) {
conf.size.type = conf_size_type;
-
- switch (conf_size_type) {
- case CONF_SIZE_PX:
- conf.size.px.width = conf_width;
- conf.size.px.height = conf_height;
- break;
-
- case CONF_SIZE_CELLS:
- conf.size.cells.width = conf_width;
- conf.size.cells.height = conf_height;
- break;
- }
+ conf.size.width = conf_width;
+ conf.size.height = conf_height;
}
if (conf_server_socket_path != NULL) {
free(conf.server_socket_path);