From 7a3e6b62e132ded433f626981a69d0776d866263 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Fri, 29 Nov 2024 12:08:09 +0100 Subject: [PATCH] remove non-portable strcasecmp --- examples/parse_args.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/parse_args.h b/examples/parse_args.h index ca3002fe3..fb94214b5 100644 --- a/examples/parse_args.h +++ b/examples/parse_args.h @@ -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);