ote deux crochets
This commit is contained in:
@@ -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))))
|
||||
|
||||
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user