Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
c579d861
Commit
c579d861
authored
Jul 25, 2012
by
Thomas Jahns
🤸
Browse files
Replace complex comparision with strcmp.
parent
00f6ee5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pio_posixfpguardsendrecv.c
View file @
c579d861
...
...
@@ -164,18 +164,9 @@ destroyBFiledataPF(void *v)
static
bool
compareNamesAPF
(
void
*
v1
,
void
*
v2
)
{
aFiledataPF
*
afd1
,
*
afd2
;
size_t
len
;
bool
ret
;
afd1
=
(
aFiledataPF
*
)
v1
;
afd2
=
(
aFiledataPF
*
)
v2
;
len
=
strlen
(
afd1
->
name
);
ret
=
(
len
==
strlen
(
afd2
->
name
)
&&
memcmp
(
afd1
->
name
,
afd2
->
name
,
len
)
==
0
);
aFiledataPF
*
afd1
=
v1
,
*
afd2
=
v2
;
return
ret
;
return
!
strcmp
(
afd1
->
name
,
afd2
->
name
)
;
}
/***************************************************************/
...
...
Write
Preview
Markdown
is supported
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