mirror of
https://github.com/curl/curl.git
synced 2026-07-23 00:47:18 +03:00
just re-indented some code
This commit is contained in:
parent
57b6202eaa
commit
a0118fb390
1 changed files with 5 additions and 5 deletions
10
lib/hostip.c
10
lib/hostip.c
|
|
@ -812,11 +812,11 @@ static void hostcache_fixoffset(struct hostent *h, int offset)
|
|||
h->h_name=(char *)((long)h->h_name+offset);
|
||||
if(h->h_aliases) {
|
||||
/* only relocate aliases if there are any! */
|
||||
h->h_aliases=(char **)((long)h->h_aliases+offset);
|
||||
while(h->h_aliases[i]) {
|
||||
h->h_aliases[i]=(char *)((long)h->h_aliases[i]+offset);
|
||||
i++;
|
||||
}
|
||||
h->h_aliases=(char **)((long)h->h_aliases+offset);
|
||||
while(h->h_aliases[i]) {
|
||||
h->h_aliases[i]=(char *)((long)h->h_aliases[i]+offset);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
h->h_addr_list=(char **)((long)h->h_addr_list+offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue