ote deux crochets

This commit is contained in:
Hugo LAMY
2019-12-31 17:38:19 +01:00
parent 0a48257728
commit 56f10f9f36
2 changed files with 2 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/12/31 17:05:53 by hulamy #+# #+# */
/* Updated: 2019/12/31 17:28:00 by hulamy ### ########.fr */
/* Updated: 2019/12/31 17:37:49 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -88,9 +88,7 @@ int multi_fd(int fd, t_gnlist **lst)
tmp = *lst;
while (*lst && (*lst)->lfd != fd && (*lst)->next != tmp)
{
*lst = (*lst)->next;
}
if (!tmp || ((*lst)->next == tmp && (*lst)->lfd != fd))
{
if (!(tmp = (t_gnlist*)malloc(sizeof(*tmp))))

View File

@@ -6,7 +6,7 @@
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/12/31 17:05:53 by hulamy #+# #+# */
/* Updated: 2019/12/31 17:25:31 by hulamy ### ########.fr */
/* Updated: 2019/12/31 17:38:00 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -88,9 +88,7 @@ int multi_fd(int fd, t_gnlist **lst)
tmp = *lst;
while (*lst && (*lst)->lfd != fd && (*lst)->next != tmp)
{
*lst = (*lst)->next;
}
if (!tmp || ((*lst)->next == tmp && (*lst)->lfd != fd))
{
if (!(tmp = (t_gnlist*)malloc(sizeof(*tmp))))