Fixed some things
This commit is contained in:
parent
b1a7e665e2
commit
4004b72dce
5 changed files with 294 additions and 275 deletions
|
|
@ -6,17 +6,13 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/03 14:31:12 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/25 20:43:05 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/30 13:38:20 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
#ifdef _FORTIFY_SOURCE
|
||||
# undef _FORTIFY_SOURCE
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/19 15:53:50 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/24 14:44:45 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/30 16:02:12 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ void close_slot(struct s_file_slot *slot)
|
|||
else if (slot->ty == SLOT_FILE)
|
||||
close_file(&slot->slot.file);
|
||||
else
|
||||
write(2, "Unknown SLOT type", 17);
|
||||
(void)!write(2, "Unknown SLOT type", 17);
|
||||
mem_set_zero(slot, sizeof(*slot));
|
||||
}
|
||||
|
||||
|
|
@ -299,4 +299,4 @@ void close_file(t_file *file)
|
|||
return ;
|
||||
slot = (void*)(file) - offsetof(struct s_file_slot, slot.file);
|
||||
mem_set_zero(slot, sizeof(*slot));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue