X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fjson.c;h=f0b6456aae8c7ffe417558aea9796c83688dbefe;hb=3e34fbdd62bcd79dad4f62ba6ec920d8f3be71bb;hp=d514a90dd202c847d8254a840eeee909b3a98ee3;hpb=c640c04f643f9cd9c9b88a9989590e8a02954f7f;p=openvswitch diff --git a/lib/json.c b/lib/json.c index d514a90d..f0b6456a 100644 --- a/lib/json.c +++ b/lib/json.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010, 2011 Nicira Networks. + * 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