Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add querier #837

Merged
merged 14 commits into from
Dec 3, 2024
Prev Previous commit
Next Next commit
remove non-portable strcasecmp
  • Loading branch information
DenisBiryukov91 committed Nov 29, 2024
commit 7a3e6b62e132ded433f626981a69d0776d866263
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