Skip to content
Commit 922f2614 authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

gaih_inet: make numeric lookup a separate routine



Introduce the gaih_result structure and general paradigm for cleanups
that follow to process the lookup request and return a result.  A lookup
function (like text_to_binary_address), should return an integer error
code and set members of gaih_result based on what it finds.  If the
function does not have a result and no errors have occurred during the
lookup, it should return 0 and res.at should be set to NULL, allowing a
subsequent function to do the lookup until we run out of options.

Signed-off-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: default avatarDJ Delorie <dj@redhat.com>
(cherry picked from commit 26dea461)
parent e05e5889
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment