X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fkeybindings.c;h=0fd2cdcd56d77d47f831145ced0eb09a2c0a7559;hb=e9ee94eeb27e1121f8383cb6fc3775f18261df75;hp=29afb78483eaf8c35c76e4d4941427cf5287225a;hpb=d701e79e9297470b56315eefd431c62c9aba28b2;p=plomrogue diff --git a/src/keybindings.c b/src/keybindings.c index 29afb78..0fd2cdc 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -146,9 +146,8 @@ extern void init_keybindings(char * path, struct KeyBiData * kbd) char * f_name = "init_keybindings()"; FILE * file = try_fopen(path, "r", f_name); - uint16_t lines, linemax; - char * err = "textfile_sizes() in init_keybindings() returns error."; - exit_err(textfile_sizes(file, &linemax, &lines), err); + uint16_t lines; + uint16_t linemax = textfile_sizes(file, &lines); char command[linemax + 1]; char * cmdptr;