Re: [ovs-dev] [PATCH] vswitchd: Avoid writing to const struct

2012-12-08 Thread Ben Pfaff
On Sat, Dec 08, 2012 at 06:23:12PM -0500, Ed Maste wrote: > When built with Clang, vswitchd segfaulted in ovsrec_open_vswitch_init, > from calling memset() on a const struct. > > Signed-off-by: Ed Maste Applied to master, thanks. ___ dev mailing list d

[ovs-dev] [PATCH] vswitchd: Avoid writing to const struct

2012-12-08 Thread Ed Maste
When built with Clang, vswitchd segfaulted in ovsrec_open_vswitch_init, from calling memset() on a const struct. Signed-off-by: Ed Maste --- vswitchd/bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index b1d2feb..cb94fa0 1006

Re: [ovs-dev] [PATCH] vswitchd: Avoid writing to const struct

2012-12-08 Thread Ben Pfaff
On Fri, Dec 07, 2012 at 05:41:16PM -0500, Ed Maste wrote: > When built with Clang, vswitchd segfaulted in ovsrec_open_vswitch_init, > from calling memset() on a const struct. > > Signed-off-by: Ed Maste > --- > This could be addressed instead by just dropping the const in the > null_cfg definitio

[ovs-dev] [PATCH] vswitchd: Avoid writing to const struct

2012-12-07 Thread Ed Maste
When built with Clang, vswitchd segfaulted in ovsrec_open_vswitch_init, from calling memset() on a const struct. Signed-off-by: Ed Maste --- This could be addressed instead by just dropping the const in the null_cfg definition, if preferred. vswitchd/bridge.c | 9 + 1 file changed, 5 in