ver_linux: Eliminate duplicate code in ldconfig processing logic
authorAlexander Kapshuk <alexander.kapshuk@gmail.com>
Fri, 8 Jan 2021 11:26:26 +0000 (13:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 13:54:42 +0000 (14:54 +0100)
commitafe9017901761d04a106916e02619caf0d2afbf5
tree93e204a53c7a42aea3af481adfc897debec20075
parentd0259c42abff51b586496a0594933e394efefbc5
ver_linux: Eliminate duplicate code in ldconfig processing logic

The code that acquires the version strings for libc and libcpp is
identical, as is the printversion call. The only difference being the
name of the library being printed.

Refactor the code by unifying the bits that are common to both libraries.

Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
Link: https://lore.kernel.org/r/20210108112626.8623-1-alexander.kapshuk@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/ver_linux