On Thu, Mar 22, 2012 at 03:43:35PM +0900, Simon Horman wrote:
> Make the name and description members of struct stress_option
> const as they are used to store constant strings.
> 
> Signed-off-by: Simon Horman <[email protected]>

With this patch, I get from GCC:

    ../lib/process.h:26: note: expected ‘char **’ but argument is of type 
‘const char **'

and from sparse:

    ../ovsdb/ovsdb-server.c:128:32: warning: incorrect type in argument 1 
(different modifiers)
    ../ovsdb/ovsdb-server.c:128:32:    expected char **argv
    ../ovsdb/ovsdb-server.c:128:32:    got char const **<noident>
    ../ovsdb/ovsdb-server.c:128: error: passing argument 1 of ‘process_start’ 
from incompatible pointer type
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to