On Thu, Mar 29, 2012 at 9:50 AM, Gert Doering wrote:
> Hi,
>
> On Wed, Mar 28, 2012 at 08:44:18PM +0200, Alon Bar-Lev wrote:
>> To avoid casting use two constants:
>> 1. IPV4_NETMASK_HOST
>
> Fine with that one.
>
>> 2. dwMINUS_ONE
>
> I think this is way over board. It should be possible to spel
Hi,
On Wed, Mar 28, 2012 at 08:44:18PM +0200, Alon Bar-Lev wrote:
> To avoid casting use two constants:
> 1. IPV4_NETMASK_HOST
Fine with that one.
> 2. dwMINUS_ONE
I think this is way over board. It should be possible to spell "-1" as
such - and it doesn't increase readability to introduce a M
To avoid casting use two constants:
1. IPV4_NETMASK_HOST
2. dwMINUS_ONE
Signed-off-by: Alon Bar-Lev
---
src/openvpn/basic.h |6 ++
src/openvpn/mroute.c |2 +-
src/openvpn/pf.c |2 +-
src/openvpn/route.c | 42 +-
src/openvpn/route.h
On Wed, Mar 28, 2012 at 9:17 PM, Fabian Knittel
wrote:
> Hi Alon,
>
> I stumbled over a minor mistake:
>
> 2012/3/28 Alon Bar-Lev :
>> diff --git a/src/openvpn/route.c b/src/openvpn/route.c
>> index bf7af63..05ea57f 100644
>> --- a/src/openvpn/route.c
>> +++ b/src/openvpn/route.c
>> @@ -1367,7 +13
Hi Alon,
I stumbled over a minor mistake:
2012/3/28 Alon Bar-Lev :
> diff --git a/src/openvpn/route.c b/src/openvpn/route.c
> index bf7af63..05ea57f 100644
> --- a/src/openvpn/route.c
> +++ b/src/openvpn/route.c
> @@ -1367,7 +1367,7 @@ add_route (struct route *r,
> else if ((flags & ROUTE_MET
To avoid casting use two constants:
1. IPV4_NETMASK_HOST
2. dwMINUS_ONE
Signed-off-by: Alon Bar-Lev
---
src/openvpn/basic.h |6 ++
src/openvpn/mroute.c |2 +-
src/openvpn/pf.c |2 +-
src/openvpn/route.c | 44 ++--
src/openvpn/route.