Re: [PATCH nft 1/3] parser: don't mark "string" as const

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


Thomas Haller <thaller@xxxxxxxxxx> wrote:
> ifname_expr_alloc() calls `free(name)`, destroying the thing that is
> pointed at. That's a modification.
> The code required to cast away the constness, which also indicates that
> it is not actually const.

It it.  I hate that free() isn't const void *.

I prefer to have const used as much as humanly possible.

[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux