Normed stuff

This commit is contained in:
Maieul BOYER 2024-09-04 17:06:41 +00:00
parent 8146ed2176
commit f925aea552
9 changed files with 23 additions and 25 deletions

View file

@ -27,7 +27,8 @@ t_fd *dup_fd(t_fd *fd)
return (NULL);
tmp = dup(fd->fd);
if (tmp == -1)
return (printf("There was an error while duping the fd %d `%s`\n", fd->fd, fd->name), NULL);
return (printf("There was an error while duping the "\
"fd %d `%s`\n", fd->fd, fd->name), NULL);
slot->ty = SLOT_FD;
slot->slot.fd.fd = tmp;
slot->slot.fd.perms = fd->perms;

View file

@ -21,10 +21,6 @@
#include <stdio.h>
#include <sys/stat.h>
#ifdef static
# undef static
#endif
t_fd_array *get_fd_arrays(void)
{
static t_fd_array val = {};

View file

@ -21,10 +21,6 @@
#include <stdio.h>
#include <sys/stat.h>
#ifdef static
# undef static
#endif
t_fd *get_stdin(void)
{
t_fd *out;