summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_lstsize.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_lstsize.c')
-rw-r--r--libft/src/ft_lstsize.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libft/src/ft_lstsize.c b/libft/src/ft_lstsize.c
index 7134a9f..05dbb77 100644
--- a/libft/src/ft_lstsize.c
+++ b/libft/src/ft_lstsize.c
@@ -12,12 +12,11 @@
#include <libft.h>
-int
- ft_lstsize(t_list *lst)
+int ft_lstsize(t_list *lst)
{
int i;
- if (!lst)
+ if (lst == NULL)
return (0);
i = 0;
while (lst != NULL)