wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | Draft: Small fixes (!505)


From: Avinash Sonawane (@rootkea)
Subject: Re: wget2 | Draft: Small fixes (!505)
Date: Thu, 28 Apr 2022 15:43:09 +0000



Avinash Sonawane started a new discussion on libwget/dns_cache.c: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/505#note_928231868

>       }
>  
>       entryp->port = port;
> -     entryp->host = ((char *)entryp) + sizeof(struct cache_entry);
> +     entryp->host = (char *)(entryp + 1);

There isn't any real benefit of this change except being short.

The motivation behind this change is code consistency. Making it consistent 
with the idiom used in `libwget/list.c/wget_list_append`.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/505#note_928231868
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]