X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=src%2Fclient%2Finterface_conf.c;fp=src%2Fclient%2Finterface_conf.c;h=45abd6a8805cdf459dd534a656771f1559f89d51;hb=491e8bc8e7a9b1d312256817c0b8be7e05b127be;hp=9e97c55888d0202605d504e4d7118d83d083ef99;hpb=3dedf6344c941891491773d1cc5d647aa664b218;p=plomrogue diff --git a/src/client/interface_conf.c b/src/client/interface_conf.c index 9e97c55..45abd6a 100644 --- a/src/client/interface_conf.c +++ b/src/client/interface_conf.c @@ -243,7 +243,7 @@ static uint8_t start_win(char * token0, char * token1, char * str_win, } *win = (struct Win *) parse_init_entry(win_flags, sizeof(struct Win)); parsetest_singlechar(token1); - parse_id_uniq(world.winDB.ids && (NULL!=strchr(world.winDB.ids,token1[0]))); + parse_id_uniq(world.winDB.ids && strchr(world.winDB.ids,token1[0])); (*win)->id = token1[0]; return 1; } @@ -367,7 +367,7 @@ static void set_keybindings(char * token1, uint8_t flags, } kb.keycode = atoi(token1); char * err_uniq = "Binding to key already defined."; - err_line(NULL != get_command_to_keycode(kbdb, kb.keycode), err_uniq); + err_line(!(!get_command_to_keycode(kbdb, kb.keycode)), err_uniq); kb.command = get_command(token2); err_line(!(kb.command), "No such command in command DB."); array_append(kbdb->n_of_kbs, sizeof(struct KeyBinding), (void *) &kb,