nss_files: Use generic result pointer in parse_line
authorFlorian Weimer <fweimer@redhat.com>
Thu, 16 Jul 2020 14:55:45 +0000 (16:55 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 21 Jul 2020 05:33:33 +0000 (07:33 +0200)
commit9980bf0b307368959cb29f3ca3f7446ad92347f1
tree4378fc4c7bf49ae0e5c24147b3cf195a1e5eb2bc
parente9b2340998ab22402a8e968ba674c380a625b9dc
nss_files: Use generic result pointer in parse_line

As a result, all parse_line functions have the same prototype, except
for that producing struct hostent.  This change is ABI-compatible, so
it does not alter the internal GLIBC_PRIVATE ABI (otherwise we should
probably have renamed the exported functions).

A future change will use this to implement a generict fget*ent_r
function.

Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
include/nss_files.h
nss/nss_files/files-parse.c