Re: iked: introduce print_addr()

2023-06-13 Thread Tobias Heider
On Tue, Jun 13, 2023 at 10:57:06AM +0200, Theo Buehler wrote: > There are a lot of print_host() calls that have an explicit cast and > pass NULL, 0 as second and third arguments. This is responsible for a > lot of awkward line wrapping. The exlicit casts can be avoided by > using a function with a

Re: iked: introduce print_addr()

2023-06-13 Thread Claudio Jeker
On Tue, Jun 13, 2023 at 10:57:06AM +0200, Theo Buehler wrote: > There are a lot of print_host() calls that have an explicit cast and > pass NULL, 0 as second and third arguments. This is responsible for a > lot of awkward line wrapping. The exlicit casts can be avoided by > using a function with a

iked: introduce print_addr()

2023-06-13 Thread Theo Buehler
There are a lot of print_host() calls that have an explicit cast and pass NULL, 0 as second and third arguments. This is responsible for a lot of awkward line wrapping. The exlicit casts can be avoided by using a function with a void * argument. This is no less typesafe than having explicit casts.