mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-16 15:04:46 +00:00
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:
parent
d7dbbf0d50
commit
fca8506ab9
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user