Revert "lttng-ctl: Hide symbol introduced by fix"
[lttng-tools.git] / src / common / ini-config / ini-config.cpp
index a9b65960b591081bd29e3bf333927c3b5b3f5559..2389627063abefe88dfc4ce6b1e0248086966b31 100644 (file)
@@ -36,7 +36,7 @@ static int config_entry_handler_filter(struct handler_filter_args *args,
                                       const char *value)
 {
        int ret = 0;
-       struct config_entry entry = { section, name, value };
+       const config_entry entry = { section, name, value };
 
        LTTNG_ASSERT(args);
 
@@ -46,7 +46,7 @@ static int config_entry_handler_filter(struct handler_filter_args *args,
        }
 
        if (args->section) {
-               if (strcmp(args->section, section)) {
+               if (strcmp(args->section, section) != 0) {
                        goto end;
                }
        }
@@ -63,7 +63,7 @@ int config_get_section_entries(const char *override_path,
 {
        int ret = 0;
        const char *path;
-       FILE *config_file = NULL;
+       FILE *config_file = nullptr;
        struct handler_filter_args filter = { section, handler, user_data };
 
        /* First, try system-wide conf. file. */
This page took 0.023345 seconds and 4 git commands to generate.