refactor cmdlist.num_cmds -> cmdlist.num_cmd to be more consistent

This commit is contained in:
Khaïs COLIN 2025-03-19 16:26:45 +01:00
parent 448458b37f
commit 88ed66e138
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
7 changed files with 27 additions and 27 deletions

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/24 17:49:46 by khais #+# #+# */
/* Updated: 2025/03/18 15:52:43 by khais ### ########.fr */
/* Updated: 2025/03/19 16:43:14 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -106,7 +106,7 @@ void cmdlist_destroy(t_cmdlist *cmd)
if (cmd == NULL)
return ;
i = 0;
while (i < cmd->num_cmds)
while (i < cmd->num_cmd)
{
cmdlist_item_destroy(cmd->cmds[i]);
i++;