Commit a43adf2b authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

strnicmp -> strncasecmp

parent 35086086
...@@ -3272,7 +3272,7 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn) ...@@ -3272,7 +3272,7 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
int rc; int rc;
if (((rc=_verify_output_channel(client,chn)))<0) return rc; if (((rc=_verify_output_channel(client,chn)))<0) return rc;
/* parse string */ /* parse string */
if ((strnicmp(cp,"in",2)==0)) { if ((strncasecmp(cp,"in",2)==0)) {
cp+=2; cp+=2;
if ((strncmp(cp,"12",2)==0)) { if ((strncmp(cp,"12",2)==0)) {
cp+=2; cp+=2;
...@@ -3288,11 +3288,11 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn) ...@@ -3288,11 +3288,11 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
src=3; src=3;
} else return -EINVAL; /* invalid input number(s) */ } else return -EINVAL; /* invalid input number(s) */
src_group=0; src_group=0;
} else if ((strnicmp(cp,"xo",2)==0)) { } else if ((strncasecmp(cp,"xo",2)==0)) {
cp+=2; cp+=2;
src_group=1; src_group=1;
src=0; src=0;
} else if ((strnicmp(cp,"ms",2)==0)) { } else if ((strncasecmp(cp,"ms",2)==0)) {
cp+=2; cp+=2;
src=cp[0]-'0'; src=cp[0]-'0';
cp++; cp++;
...@@ -3301,7 +3301,7 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn) ...@@ -3301,7 +3301,7 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
} }
src_group=2; src_group=2;
div1=-1; div1=-1;
} else if ((strnicmp(cp,"no",2)==0)) { } else if ((strncasecmp(cp,"no",2)==0)) {
cp+=2; cp+=2;
src_group=3; src_group=3;
} else return -EINVAL; } else return -EINVAL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment