diff mbox series

[3/3] ctf-reader: Use ABG_ASSERT instead of assert

Message ID 20211118030116.564632-4-guillermo.e.martinez@oracle.com
State New
Headers show
Series Some improvements in ctf-reader. | expand

Commit Message

Guillermo E. Martinez Nov. 18, 2021, 3:01 a.m. UTC
* tools/abidiff.cc (main): Use ABG_ASSERT.
  * tools/abilint.cc: Likewise.
---
 tools/abidiff.cc | 4 ++--
 tools/abilint.cc | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/tools/abidiff.cc b/tools/abidiff.cc
index 30959616..7f766d16 100644
--- a/tools/abidiff.cc
+++ b/tools/abidiff.cc
@@ -1173,7 +1173,7 @@  main(int argc, char* argv[])
                   = abigail::ctf_reader::create_read_context(opts.file1,
                                                              env.get());
 
-                assert (ctxt);
+                ABG_ASSERT(ctxt);
                 c1 = abigail::ctf_reader::read_corpus(ctxt.get(),
                                                       c1_status);
               }
@@ -1257,7 +1257,7 @@  main(int argc, char* argv[])
                   = abigail::ctf_reader::create_read_context(opts.file2,
                                                              env.get());
 
-                assert (ctxt);
+                ABG_ASSERT(ctxt);
                 c2 = abigail::ctf_reader::read_corpus (ctxt.get(),
                                                        c2_status);
               }
diff --git a/tools/abilint.cc b/tools/abilint.cc
index 2e9bae49..e3e8b079 100644
--- a/tools/abilint.cc
+++ b/tools/abilint.cc
@@ -374,7 +374,7 @@  main(int argc, char* argv[])
                   = abigail::ctf_reader::create_read_context(opts.file_path,
                                                              env.get());
 
-                assert (ctxt);
+                ABG_ASSERT(ctxt);
                 corp = abigail::ctf_reader::read_corpus (ctxt.get(), s);
               }
             else