diff --git a/include/abg-tools-utils.h b/include/abg-tools-utils.h index 94eb3bba..f9745e59 100644 --- a/include/abg-tools-utils.h +++ b/include/abg-tools-utils.h @@ -115,7 +115,7 @@ enum file_type FILE_TYPE_RPM, /// An SRPM (.src.rpm) file FILE_TYPE_SRPM, - /// An DEB (.deb) binary file + /// A DEB (.deb) binary file FILE_TYPE_DEB, /// A plain directory FILE_TYPE_DIR diff --git a/tools/abipkgdiff.cc b/tools/abipkgdiff.cc index ed50eb50..f7e656a5 100644 --- a/tools/abipkgdiff.cc +++ b/tools/abipkgdiff.cc @@ -1128,7 +1128,7 @@ main(int argc, char* argv[]) switch (first_package->type()) { case abigail::tools_utils::FILE_TYPE_RPM: - if (!(second_package->type() == abigail::tools_utils::FILE_TYPE_RPM)) + if (second_package->type() != abigail::tools_utils::FILE_TYPE_RPM) { cerr << opts.package2 << " should be an RPM file\n"; return 1; @@ -1136,9 +1136,9 @@ main(int argc, char* argv[]) break; case abigail::tools_utils::FILE_TYPE_DEB: - if (!(second_package->type() == abigail::tools_utils::FILE_TYPE_DEB)) + if (second_package->type() != abigail::tools_utils::FILE_TYPE_DEB) { - cerr << opts.package2 << " should be an DEB file\n"; + cerr << opts.package2 << " should be a DEB file\n"; return 1; } break;