Rename: bt_put(), bt_get() -> bt_object_put_ref(), bt_object_get_ref()
[babeltrace.git] / cli / babeltrace-cfg-cli-args-default.c
index 2a66a6359624e443ceb0967a67e1fd336444ce69..dad339ad72b6637591f00840bbe9bca62a747088 100644 (file)
@@ -53,15 +53,15 @@ struct bt_config *bt_config_cli_args_create_with_default(int argc,
        }
 
        cfg = bt_config_cli_args_create(argc, argv, retcode, true, true,
-               BT_ENABLE_DEBUG_INFO == 0, initial_plugin_paths);
+               initial_plugin_paths);
        goto end;
 
 error:
        *retcode = 1;
-       BT_PUT(cfg);
+       BT_OBJECT_PUT_REF_AND_RESET(cfg);
 
 end:
-       bt_put(initial_plugin_paths);
+       bt_object_put_ref(initial_plugin_paths);
        return cfg;
 }
 
@@ -71,7 +71,7 @@ struct bt_config *bt_config_cli_args_create_with_default(int argc,
                const char *argv[], int *retcode)
 {
        return bt_config_cli_args_create(argc, argv, retcode, false, false,
-               BT_ENABLE_DEBUG_INFO == 0, NULL);
+               NULL);
 }
 
 #endif /* BT_SET_DEFAULT_IN_TREE_CONFIGURATION */
This page took 0.023202 seconds and 4 git commands to generate.