projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace all assert(false) and assert(0) with abort()
[babeltrace.git]
/
cli
/
babeltrace-cfg-cli-args.c
diff --git
a/cli/babeltrace-cfg-cli-args.c
b/cli/babeltrace-cfg-cli-args.c
index e1208451e9491da73a65dda24648d2c3b02c07a6..64f196e5a668ec494192e97d78853bc781fca846 100644
(file)
--- a/
cli/babeltrace-cfg-cli-args.c
+++ b/
cli/babeltrace-cfg-cli-args.c
@@
-405,7
+405,7
@@
int ini_handle_state(struct ini_parsing_state *state)
state->expecting = INI_EXPECT_MAP_KEY;
goto success;
default:
state->expecting = INI_EXPECT_MAP_KEY;
goto success;
default:
- a
ssert(false
);
+ a
bort(
);
}
error:
}
error:
@@
-889,7
+889,7
@@
void bt_config_destroy(struct bt_object *obj)
}
break;
default:
}
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
g_free(cfg);
}
g_free(cfg);
@@
-1336,7
+1336,7
@@
void add_run_cfg_comp(struct bt_config *cfg,
g_ptr_array_add(cfg->cmd_data.run.sinks, cfg_comp);
break;
default:
g_ptr_array_add(cfg->cmd_data.run.sinks, cfg_comp);
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
}
}
}
@@
-1855,7
+1855,7
@@
struct bt_config *bt_config_help_from_args(int argc, const char *argv[],
BT_COMPONENT_CLASS_TYPE_SINK;
break;
default:
BT_COMPONENT_CLASS_TYPE_SINK;
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
plug_comp_cls_names = strdup(arg);
if (!plug_comp_cls_names) {
}
plug_comp_cls_names = strdup(arg);
if (!plug_comp_cls_names) {
@@
-2068,7
+2068,7
@@
struct bt_config *bt_config_query_from_args(int argc, const char *argv[],
type = BT_COMPONENT_CLASS_TYPE_SINK;
break;
default:
type = BT_COMPONENT_CLASS_TYPE_SINK;
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
cfg->cmd_data.query.cfg_component =
}
cfg->cmd_data.query.cfg_component =
@@
-2536,7
+2536,7
@@
struct bt_config *bt_config_run_from_args(int argc, const char *argv[],
opt_name = "--sink";
break;
default:
opt_name = "--sink";
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
if (cur_cfg_comp) {
}
if (cur_cfg_comp) {
@@
-3085,7
+3085,7
@@
int append_run_args_for_implicit_component(
}
break;
default:
}
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
if (bt_value_array_append_string(run_args,
}
if (bt_value_array_append_string(run_args,
@@
-3322,7
+3322,7
@@
int convert_append_name_param(enum bt_config_component_dest dest,
*sink_names = g_list_append(*sink_names, name);
break;
default:
*sink_names = g_list_append(*sink_names, name);
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
g_string_assign(cur_name_prefix, "");
}
g_string_assign(cur_name_prefix, "");
@@
-3754,7
+3754,7
@@
struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
}
break;
default:
}
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
if (bt_value_array_append_string(run_args, arg)) {
}
if (bt_value_array_append_string(run_args, arg)) {
@@
-4759,7
+4759,7
@@
struct bt_config *bt_config_cli_args_create(int argc, const char *argv[],
force_omit_home_plugin_path, initial_plugin_paths);
break;
default:
force_omit_home_plugin_path, initial_plugin_paths);
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
if (config) {
}
if (config) {
This page took
0.02491 seconds
and
4
git commands to generate.