[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: const improperly cast away

From: Stefan Fuhrmann <stefanfuhrmann_at_alice-dsl.de>
Date: Wed, 18 May 2011 15:25:33 +0200

On 18.05.2011 12:42, Daniel Shahaf wrote:
> [[[
> svn_fs_fs__dag_deserialize(const char *data)
> {
> dag_node_t *node = (dag_node_t *)data;
> svn_fs_fs__id_deserialize(node,
> (svn_fs_id_t **)&node->fresh_root_predecessor_id);
> }
> ]]]
>
> Here, the 'fresh_root_predecessor_id' member of '*node' is somewhere
> within *data, and therefore const.
>
> I guess that one of the APIs here should get the 'const' removed from
> its signature?
>
Done in r1124255.

-- Stefan^2.
Received on 2011-05-18 15:26:15 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.