Remove useless const from the declaration of extract_rpm()

In this declaration:

    const bool
    extract_rpm(const string& pkg_path, const string &extracted_pkg_dir_path)

the compiler rightfully complains that the const qualifier on the
return type is useless.  This is because the value is returned by copy
so the const-ness is not relevant.

Fixed thus.

	* tools/abipkgdiff.cc (extract_rpm): Remove useless const qualifier.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2015-07-03 15:44:54 +02:00
parent 9d25aa0125
commit fc805d43b5

View File

@ -213,7 +213,7 @@ elf_file_type(const GElf_Ehdr* ehdr)
}
}
const bool
bool
extract_rpm(const string& pkg_path, const string &extracted_pkg_dir_path)
{
string cmd = "mkdir " + extracted_pkg_dir_path + " && cd " +