mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
pki: Make a strcmp better readable.
This commit is contained in:
@@ -230,7 +230,7 @@ char *ssh_find_matching(const char *available_d, const char *preferred_d){
|
|||||||
|
|
||||||
for(i_pref=0; tok_preferred[i_pref] ; ++i_pref){
|
for(i_pref=0; tok_preferred[i_pref] ; ++i_pref){
|
||||||
for(i_avail=0; tok_available[i_avail]; ++i_avail){
|
for(i_avail=0; tok_available[i_avail]; ++i_avail){
|
||||||
if(!strcmp(tok_available[i_avail],tok_preferred[i_pref])){
|
if(strcmp(tok_available[i_avail],tok_preferred[i_pref]) == 0){
|
||||||
/* match */
|
/* match */
|
||||||
ret=strdup(tok_available[i_avail]);
|
ret=strdup(tok_available[i_avail]);
|
||||||
/* free the tokens */
|
/* free the tokens */
|
||||||
|
Reference in New Issue
Block a user