Re: [ovs-dev] [PATCH] stream: Make classes const

2011-11-23 Thread Ben Pfaff
On Thu, Nov 24, 2011 at 10:22:22AM +0900, Simon Horman wrote: > On Wed, Nov 23, 2011 at 09:12:34AM -0800, Ben Pfaff wrote: > > On Wed, Nov 23, 2011 at 10:32:41AM +0900, Simon Horman wrote: > > > The classes are never modified and may be declared constant. > > > > Fails to build here: > > > > ../l

Re: [ovs-dev] [PATCH] stream: Make classes const

2011-11-23 Thread Simon Horman
On Wed, Nov 23, 2011 at 09:12:34AM -0800, Ben Pfaff wrote: > On Wed, Nov 23, 2011 at 10:32:41AM +0900, Simon Horman wrote: > > The classes are never modified and may be declared constant. > > Fails to build here: > > ../lib/stream-ssl.c: In function 'pssl_open': > ../lib/stream-ssl.c:806:5: error

Re: [ovs-dev] [PATCH] stream: Make classes const

2011-11-23 Thread Ben Pfaff
On Wed, Nov 23, 2011 at 10:32:41AM +0900, Simon Horman wrote: > The classes are never modified and may be declared constant. Fails to build here: ../lib/stream-ssl.c: In function 'pssl_open': ../lib/stream-ssl.c:806:5: error: passing argument 2 of 'pstream_init' discards qualifiers from pointer t

[ovs-dev] [PATCH] stream: Make classes const

2011-11-22 Thread Simon Horman
The classes are never modified and may be declared constant. --- Compile tested only $ gcc --version gcc (Debian 4.6.1-4) 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or F