diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-05-26 23:16:28 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-06-02 23:10:21 +0200 |
commit | 0e8dc6f18eeb8a54115af2b2bd5693f933b6c27f (patch) | |
tree | 431a988990cc899ec3eb500d03217d9d7a81d04a /ares_gethostbyaddr.c | |
parent | cd59ae213f9adbe53e8cbade8e3159b56e618dc2 (diff) | |
download | c-ares-0e8dc6f18eeb8a54115af2b2bd5693f933b6c27f.tar.gz c-ares-0e8dc6f18eeb8a54115af2b2bd5693f933b6c27f.tar.bz2 c-ares-0e8dc6f18eeb8a54115af2b2bd5693f933b6c27f.zip |
style: make code less than 80 columns wide
Diffstat (limited to 'ares_gethostbyaddr.c')
-rw-r--r-- | ares_gethostbyaddr.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ares_gethostbyaddr.c b/ares_gethostbyaddr.c index 5623bd1..28152f4 100644 --- a/ares_gethostbyaddr.c +++ b/ares_gethostbyaddr.c @@ -190,8 +190,8 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host) char tmp[MAX_PATH]; HKEY hkeyHosts; - if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ, &hkeyHosts) - == ERROR_SUCCESS) + if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ, + &hkeyHosts) == ERROR_SUCCESS) { DWORD dwLength = MAX_PATH; RegQueryValueEx(hkeyHosts, DATABASEPATH, NULL, NULL, (LPBYTE)tmp, @@ -240,12 +240,14 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host) } if (addr->family == AF_INET) { - if (memcmp((*host)->h_addr, &addr->addrV4, sizeof(addr->addrV4)) == 0) + if (memcmp((*host)->h_addr, &addr->addrV4, + sizeof(addr->addrV4)) == 0) break; } else if (addr->family == AF_INET6) { - if (memcmp((*host)->h_addr, &addr->addrV6, sizeof(addr->addrV6)) == 0) + if (memcmp((*host)->h_addr, &addr->addrV6, + sizeof(addr->addrV6)) == 0) break; } ares_free_hostent(*host); |