Misc style fixes in abipkgdiff

* include/abg-tools-utils.h (enum file_type): Fix the comment for
	for the FILE_TYPE_DEB enumerator.
	* tools/abipkgdiff.cc (main): Fix the style of the conditions.
	Also, fix the text emitted.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2015-08-22 12:15:16 +02:00
parent d7dbbf0d50
commit fca8506ab9
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;