Skip to content

Commit 0626bdb

Browse files
committed
chore: Remove unnecessary casts to void in libft
1 parent 3ce4b8a commit 0626bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/libft/src/strings/ft_strjoin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ char *ft_strjoin(char const *s1, char const *s2)
2626
if (strj == NULL)
2727
return (NULL);
2828
if (len1)
29-
(void) ft_memcpy(&strj[0], s1, len1);
29+
ft_memcpy(&strj[0], s1, len1);
3030
if (len2)
31-
(void) ft_memcpy(&strj[len1], s2, len2);
31+
ft_memcpy(&strj[len1], s2, len2);
3232
strj[len1 + len2] = '\0';
3333
return (strj);
3434
}

0 commit comments

Comments
 (0)