Skip to content

Commit

Permalink
remove non-portable strcasecmp
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Nov 29, 2024
1 parent 2754b8a commit 7a3e6b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/parse_args.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ void parse_zenoh_common_args(const int argc, char** argv, z_owned_config_t* conf
}

z_query_target_t parse_query_target(const char* arg) {
if (strcasecmp(arg, "BEST_MATCHING") == 0) {
if (strcmp(arg, "BEST_MATCHING") == 0) {
return Z_QUERY_TARGET_BEST_MATCHING;
} else if (strcasecmp(arg, "ALL") == 0) {
} else if (strcmp(arg, "ALL") == 0) {
return Z_QUERY_TARGET_ALL;
} else if (strcasecmp(arg, "ALL_COMPLETE") == 0) {
} else if (strcmp(arg, "ALL_COMPLETE") == 0) {
return Z_QUERY_TARGET_ALL_COMPLETE;
} else {
printf("Unsupported query target value [%s]\n", arg);
Expand Down

0 comments on commit 7a3e6b6

Please sign in to comment.