]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13a85634a99ad2961604a1ff46bae928553321c1
tree93e204a53c7a42aea3af481adfc897debec20075
parent357dd41e3414e61722e55f1e1e8c86019c4fb41b
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