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]
/
lib
/
graph
/
iterator.c
diff --git
a/lib/graph/iterator.c
b/lib/graph/iterator.c
index 2428c72b68d4296433b6c201e416b0449d450619..1a295cb3c4f1865cf92dc59267c4ffa1eeb987b1 100644
(file)
--- a/
lib/graph/iterator.c
+++ b/
lib/graph/iterator.c
@@
-50,6
+50,7
@@
#include <babeltrace/graph/port.h>
#include <babeltrace/types.h>
#include <stdint.h>
#include <babeltrace/graph/port.h>
#include <babeltrace/types.h>
#include <stdint.h>
+#include <stdlib.h>
struct stream_state {
struct bt_ctf_stream *stream; /* owned by this */
struct stream_state {
struct bt_ctf_stream *stream; /* owned by this */
@@
-149,7
+150,7
@@
void destroy_action(struct action *action)
case ACTION_TYPE_SET_STREAM_STATE_IS_ENDED:
break;
default:
case ACTION_TYPE_SET_STREAM_STATE_IS_ENDED:
break;
default:
- a
ssert(BT_FALSE
);
+ a
bort(
);
}
}
}
}
@@
-261,7
+262,7
@@
void apply_actions(struct bt_notification_iterator *iterator)
action->payload.set_stream_state_cur_packet.packet);
break;
default:
action->payload.set_stream_state_cur_packet.packet);
break;
default:
- a
ssert(BT_FALSE
);
+ a
bort(
);
}
}
}
}
@@
-428,7
+429,7
@@
void bt_notification_iterator_finalize(
}
default:
/* Unreachable */
}
default:
/* Unreachable */
- a
ssert(0
);
+ a
bort(
);
}
if (finalize_method) {
}
if (finalize_method) {
@@
-664,7
+665,7
@@
bt_notification_iterator_notif_type_from_notif_type(
iter_notif_type = BT_NOTIFICATION_ITERATOR_NOTIF_TYPE_PACKET_END;
break;
default:
iter_notif_type = BT_NOTIFICATION_ITERATOR_NOTIF_TYPE_PACKET_END;
break;
default:
- a
ssert(BT_FALSE
);
+ a
bort(
);
}
return iter_notif_type;
}
return iter_notif_type;
@@
-1521,8
+1522,7
@@
enum bt_notification_iterator_status ensure_queue_has_notifications(
break;
}
default:
break;
}
default:
- assert(BT_FALSE);
- break;
+ abort();
}
/*
}
/*
@@
-1596,7
+1596,7
@@
enum bt_notification_iterator_status ensure_queue_has_notifications(
break;
default:
/* Unknown non-error status */
break;
default:
/* Unknown non-error status */
- a
ssert(BT_FALSE
);
+ a
bort(
);
}
}
}
}
This page took
0.025161 seconds
and
4
git commands to generate.