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

const improperly cast away

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 18 May 2011 12:42:39 +0200

[[[
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?
Received on 2011-05-18 12:43:16 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.