X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fjson.c;h=f0b6456aae8c7ffe417558aea9796c83688dbefe;hb=59af549f66c770a9c76a4f00d10abf5dd2009f6e;hp=ddce335a0bf33638238c3e2c3ac46bad4d3caeeb;hpb=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e;p=sliver-openvswitch.git diff --git a/lib/json.c b/lib/json.c index ddce335a0..f0b6456aa 100644 --- a/lib/json.c +++ b/lib/json.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010, 2011 Nicira, Inc. + * Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -296,14 +296,14 @@ struct json_array * json_array(const struct json *json) { assert(json->type == JSON_ARRAY); - return (struct json_array *) &json->u.array; + return CONST_CAST(struct json_array *, &json->u.array); } struct shash * json_object(const struct json *json) { assert(json->type == JSON_OBJECT); - return (struct shash *) json->u.object; + return CONST_CAST(struct shash *, json->u.object); } bool