projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: merge `assert-pre.h` and `assert-post.h` into `assert-cond.h`
[babeltrace.git]
/
src
/
lib
/
graph
/
component-sink.c
diff --git
a/src/lib/graph/component-sink.c
b/src/lib/graph/component-sink.c
index f3093b2ac3f3ffbdf63ee4cf7bf2c537ae8ba422..d89b7283b13da459892080df29b7c8fc871bccde 100644
(file)
--- a/
src/lib/graph/component-sink.c
+++ b/
src/lib/graph/component-sink.c
@@
-9,8
+9,7
@@
#include "lib/logging.h"
#include "common/assert.h"
#include "lib/logging.h"
#include "common/assert.h"
-#include "lib/assert-pre.h"
-#include "lib/assert-post.h"
+#include "lib/assert-cond.h"
#include "compat/compiler.h"
#include <babeltrace2/value.h>
#include <babeltrace2/graph/self-component.h>
#include "compat/compiler.h"
#include <babeltrace2/value.h>
#include <babeltrace2/graph/self-component.h>
@@
-113,6
+112,7
@@
enum bt_self_component_add_port_status bt_self_component_sink_add_input_port(
struct bt_component *comp = (void *) self_comp;
BT_ASSERT_PRE_NO_ERROR();
struct bt_component *comp = (void *) self_comp;
BT_ASSERT_PRE_NO_ERROR();
+ BT_ASSERT_PRE_INPUT_PORT_NAME_UNIQUE(comp, name);
/* bt_component_add_input_port() logs details/errors */
status = bt_component_add_input_port(comp, name, user_data, &port);
/* bt_component_add_input_port() logs details/errors */
status = bt_component_add_input_port(comp, name, user_data, &port);
This page took
0.023292 seconds
and
4
git commands to generate.