mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
get_ssh(): Use g_ascii_strcasecmp() instead of strcasecmp().
The latter is not always available.
This commit is contained in:
parent
6fc18a21f1
commit
5584e2eb95
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ static char ** get_ssh ( unsigned int *length )
|
|||
|
||||
// Skip empty lines and comment lines. Also skip lines where the
|
||||
// keyword is not "Host".
|
||||
if ( ! token || *token == '#' || strcasecmp( token, "Host" ) ) {
|
||||
if ( ! token || *token == '#' || g_ascii_strcasecmp( token, "Host" ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ static char ** get_ssh ( unsigned int *length )
|
|||
// given num_favorites is max 25.
|
||||
int found = 0;
|
||||
for ( unsigned int j = 0; j < num_favorites; j++ ) {
|
||||
if ( ! strcasecmp ( token, retv[j] ) ) {
|
||||
if ( ! g_ascii_strcasecmp ( token, retv[j] ) ) {
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue