diff options
| author | K. Y. Srinivasan <kys@microsoft.com> | 2011-07-26 11:03:10 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-23 16:19:37 -0700 |
| commit | 5be528c2130a1281ba858296924dd619068bb0e3 (patch) | |
| tree | 9e1cf96e367381edd937159aaf91ff276d68d3ad /scripts/diffconfig | |
| parent | e54bbc6471d7f788d829e5f3b5922960048fbff7 (diff) | |
Staging: hv: util: kvp: Cleanup kvp_get_domain_name()
Cleanup kvp_get_domain_name(). If getaddrinfo() fails, deal with it properly
(this can happen if no IP address has been assigned). Also, don't specify
a specific service in the call to getaddrinfo() to make this code as generic
as possible. Lastly, move the call to gethostname() after the local variables.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/diffconfig')
0 files changed, 0 insertions, 0 deletions
