From 72c0a87dad271c7e1dced9c52ea3a9f8befb3312 Mon Sep 17 00:00:00 2001 From: gwojda Date: Wed, 22 Mar 2017 17:23:14 +0100 Subject: [PATCH] libft norme OK --- 42sh/libft/src/ft_printf/ft_vprintf.c | 6 +++--- 42sh/libft/src/sys/fd_replace.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/42sh/libft/src/ft_printf/ft_vprintf.c b/42sh/libft/src/ft_printf/ft_vprintf.c index 718897e9..09ba322c 100644 --- a/42sh/libft/src/ft_printf/ft_vprintf.c +++ b/42sh/libft/src/ft_printf/ft_vprintf.c @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* ft_vprintf.c :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: jhalford +#+ +:+ +#+ */ +/* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/20 15:52:57 by jhalford #+# #+# */ -/* Updated: 2017/03/21 16:34:06 by jhalford ### ########.fr */ +/* Updated: 2017/03/22 17:22:30 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -57,7 +57,7 @@ int ft_vasprintf(char **ret, const char *format, va_list ap) return (-1); } else if (!(final = ft_strjoin(final, (char[]){*str++, 0}))) - return (-1); + return (-1); ft_strdel(&tmp); } *ret = final; diff --git a/42sh/libft/src/sys/fd_replace.c b/42sh/libft/src/sys/fd_replace.c index f8a753dd..2e22e75e 100644 --- a/42sh/libft/src/sys/fd_replace.c +++ b/42sh/libft/src/sys/fd_replace.c @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* fd_replace.c :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: jhalford +#+ +:+ +#+ */ +/* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/21 16:32:26 by jhalford #+# #+# */ -/* Updated: 2017/03/21 16:42:19 by jhalford ### ########.fr */ +/* Updated: 2017/03/22 17:22:55 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,6 +15,6 @@ int fd_replace(int fd1, int fd2) { if (fd1 != fd2) - return(dup2_close(fd1, fd2)); + return (dup2_close(fd1, fd2)); return (0); }