Skip to content

Commit

Permalink
delete _put_void
Browse files Browse the repository at this point in the history
  • Loading branch information
rask24 committed Feb 13, 2024
1 parent e7080ac commit d3e03a3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: reasuke <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/10 12:37:36 by reasuke #+# #+# */
/* Updated: 2024/02/13 15:00:02 by reasuke ### ########.fr */
/* Updated: 2024/02/13 22:58:00 by reasuke ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -15,7 +15,7 @@
#ifdef LEAK
# ifdef __APPLE__

void leak_chek(void) __attribute__((destructor));
void leak_chek(void) __attribute__((destructor));

void leak_chek(void)
{
Expand All @@ -33,11 +33,6 @@ void put_void(void *content)

#endif

static void _put_void(void *p_content)
{
ft_printf("%d\n", ((t_content *)p_content)->index);
}

int main(int argc, char **argv)
{
t_stack *st_a;
Expand All @@ -46,7 +41,6 @@ int main(int argc, char **argv)
check_args(argc, argv);
st_a = generate_stack(argc, argv);
st_b = NULL;
ft_lstiter(st_a, _put_void);
sort(&st_a, &st_b);
clear_stack(&st_a, free);
return (0);
Expand Down

0 comments on commit d3e03a3

Please sign in to comment.