X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fcommand_db.c;h=110f91f4eb2ddcf9c1fade659375e35b493526b0;hb=10680a2398daf76e6a0cd261c2b247e6902f2ad0;hp=fd7f4dc7a2f78ae431ebd0bf37ee52bfda574da1;hpb=fdb7a8eb2bc58d180d53f4085085a62bc1f2e62b;p=plomrogue diff --git a/src/command_db.c b/src/command_db.c index fd7f4dc..110f91f 100644 --- a/src/command_db.c +++ b/src/command_db.c @@ -82,9 +82,8 @@ extern void init_command_db() char * path = "config/commands"; FILE * file = try_fopen(path, "r", f_name); - uint16_t lines, linemax; - uint8_t test = textfile_sizes(file, &linemax, &lines); - exit_trouble(test, f_name, "textfile_sizes()"); + uint16_t lines; + uint16_t linemax = textfile_sizes(file, &lines); char line[linemax + 1]; struct Command * cmds = try_malloc(lines * sizeof(struct Command), f_name);