summaryrefslogtreecommitdiffstats
path: root/src/b_sqb_str.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-26 17:54:40 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-26 17:54:40 +0200
commit63d4df1fbb5ac13cd388a1a0069ab82a13f81069 (patch)
tree12c4ef5371b2f2e5d7435bf51fa406a5d4d45060 /src/b_sqb_str.c
parentNew comparison strings stuff (diff)
download42-minishell-63d4df1fbb5ac13cd388a1a0069ab82a13f81069.tar.gz
42-minishell-63d4df1fbb5ac13cd388a1a0069ab82a13f81069.tar.bz2
42-minishell-63d4df1fbb5ac13cd388a1a0069ab82a13f81069.tar.xz
42-minishell-63d4df1fbb5ac13cd388a1a0069ab82a13f81069.tar.zst
42-minishell-63d4df1fbb5ac13cd388a1a0069ab82a13f81069.zip
Numbers are goodio, now errcheck
Diffstat (limited to '')
-rw-r--r--src/b_sqb_str.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/b_sqb_str.c b/src/b_sqb_str.c
index cc7e4ed..d3a1978 100644
--- a/src/b_sqb_str.c
+++ b/src/b_sqb_str.c
@@ -17,14 +17,14 @@
static t_bool
b_sqb_str_comp(uint8_t id,
- const char s_one[],
- const char s_two[])
+ const char s1[],
+ const char s2[])
{
if (id == FT_ID_SQB_EQUA &&
- ft_strncmp(s_one, s_two, ft_strlen(s_one) + 1) == 0)
+ ft_strncmp(s1, s2, ft_strlen(s1) + 1) == 0)
return (TRUE);
else if (id == FT_ID_SQB_EQUA &&
- ft_strncmp(s_one, s_two, ft_strlen(s_one) + 1) != 0)
+ ft_strncmp(s1, s2, ft_strlen(s1) + 1) != 0)
return (TRUE);
return (FALSE);
}