Faut ajouter make bozo, bozo

This commit is contained in:
Etienne Rey-bethbeder 2023-03-13 13:26:36 +01:00
parent ec752adbfa
commit c43331dca3
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/20 14:27:36 by erey-bet #+# #+# */
/* Updated: 2023/03/09 20:13:05 by erey-bet ### ########.fr */
/* Updated: 2023/03/13 13:26:08 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,7 +24,7 @@ int make_move(char *path, int fd)
return (0);
}
free(join);
write(2, "No suck file or directory", 25);
write(2, "No such file or directory\n", 26);
return (1);
}
@ -34,7 +34,7 @@ int move_folder(char **args, int fd)
if (args[1] != NULL)
{
write(2, "cd: too many argument", 22);
write(2, "cd: too many argument\n", 22);
return (1);
}
path = args[0];
@ -42,7 +42,7 @@ int move_folder(char **args, int fd)
{
if (chdir(path) == 0)
return (0);
write(2, "No suck file or directory", 25);
write(2, "No such file or directory\n", 26);
return (1);
}
else

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
/* Updated: 2023/03/13 13:09:13 by erey-bet ### ########.fr */
/* Updated: 2023/03/13 13:23:56 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
@ -63,7 +63,7 @@ int set_key_value_export(t_list **env, char *args, char **key, char **value)
return (0);
}
int add_export(t_list **env, char *args, int fd)
int add_export(t_list **env, char *args)
{
char *key;
char *value;
@ -100,7 +100,7 @@ int ft_export(t_list **env, char **args, int fd)
{
i = -1;
while (args[++i])
if (add_export(env, args[i], fd) == 1)
if (add_export(env, args[i]) == 1)
err = 1;
}
return (err);