On Tue, Jan 21, 2014 at 09:54:27AM -0800, Jesse Gross wrote:
> On Wed, Jan 15, 2014 at 3:46 PM, Luigi Rizzo <ri...@iet.unipi.it> wrote:
> > i see. So the const qualifier in the argument to those functions
> > is ignored/overridden intentionally ?
> 
> Well really we have two types of functions here: one that accepts a
> const and returns a const and one that is the same but for non-const
> pointers. Every use should be able to map directly to one of those two
> without the need to do any casting away of constness but in practice
> they've been combined into a single function here.

For what it's worth, this is a common thing to do in C.  You can see the
same thing in the C library itself in the definition of functions like
strchr().
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to