include/babeltrace/graph: fix some include guards
[babeltrace.git] / include / babeltrace / graph / notification-packet-internal.h
index 7164d55baf07349f09df45143118387005f8d3eb..1c5917514c687c3fc2c742cfe8865de9eddfe00a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H
-#define BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H
+#define BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H
 
 /*
  * BabelTrace - Packet-related Notifications
@@ -30,6 +30,7 @@
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/ctf-ir/packet.h>
 #include <babeltrace/graph/notification-internal.h>
+#include <babeltrace/assert-internal.h>
 
 struct bt_notification_packet_begin {
        struct bt_notification parent;
@@ -49,7 +50,7 @@ struct bt_packet *bt_notification_packet_begin_borrow_packet(
                container_of(notif,
                        struct bt_notification_packet_begin, parent);
 
-       assert(notif_packet_begin);
+       BT_ASSERT(notif_packet_begin);
        return notif_packet_begin->packet;
 }
 
@@ -61,8 +62,8 @@ struct bt_packet *bt_notification_packet_end_borrow_packet(
                container_of(notif,
                        struct bt_notification_packet_end, parent);
 
-       assert(notif_packet_end);
+       BT_ASSERT(notif_packet_end);
        return notif_packet_end->packet;
 }
 
-#endif /* BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H */
This page took 0.024748 seconds and 4 git commands to generate.