diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-05-25 13:15:00 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-05-25 13:15:00 -0700 |
commit | 9b6136a732114949be57d42ce358f7b3cc2f5bbf (patch) | |
tree | 151634aa9577dc9838ac7516dfa8e54b91c2be68 /src/main.c | |
parent | 3e3faa57e22610fa03050089b0e15c9df7fe832e (diff) |
*: normalize on all case-insensitive comparisons
I don't think rototiller is an appropriate place for being so
uncooperative, if someone gets the case wrong anywhere just make
it work. We should avoid making different things so subtly
different that case alone is the distinction anyways, so I don't
see this creating any future namespace collision problems.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -100,14 +100,14 @@ static int setup_video(til_settings_t *settings, til_setting_t **res_setting, co /* XXX: this is kind of hacky for now */ #ifdef HAVE_DRM - if (!strcmp(video, "drm")) { + if (!strcasecmp(video, "drm")) { fb_ops = &drm_fb_ops; return drm_fb_ops.setup(settings, res_setting, res_desc, res_setup); } #endif #ifdef HAVE_SDL - if (!strcmp(video, "sdl")) { + if (!strcasecmp(video, "sdl")) { fb_ops = &sdl_fb_ops; return sdl_fb_ops.setup(settings, res_setting, res_desc, res_setup); |