Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Ezstream
Commits
1d0b9d48
Commit
1d0b9d48
authored
Sep 25, 2017
by
Moritz Grimm
Browse files
Simplify util_strrcmp to return a strictly boolean value
parent
f5f130e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util.c
View file @
1d0b9d48
...
...
@@ -200,9 +200,9 @@ util_strrcmp(const char *s, const char *sub)
size_t
sublen
=
strlen
(
sub
);
if
(
sublen
>
slen
)
return
(
1
);
return
(
!
0
);
return
(
memcmp
(
s
+
slen
-
sublen
,
sub
,
sublen
));
return
(
!!
memcmp
(
s
+
slen
-
sublen
,
sub
,
sublen
));
}
int
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment