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

Re: svn commit: r33267 - in trunk/subversion: include libsvn_client libsvn_subr

From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 24 Sep 2008 18:53:01 -0700

On Wed, Sep 24, 2008 at 9:40 AM, <julianfoad_at_tigris.org> wrote:
>...
> +++ trunk/subversion/libsvn_client/merge.c Wed Sep 24 09:40:13 2008 (r33267)
>...
> +compare_merge_path_t_as_paths(const void *a,
> + const void *b)
> {
> - int j = 0;
> - *child_or_parent = NULL;
> + svn_client__merge_path_t *child1 = *((svn_client__merge_path_t * const *) a);
> + svn_client__merge_path_t *child2 = *((svn_client__merge_path_t * const *) b);

Don't you want something like:

  const svn_client__merge_path_t *child1 = *((const
svn_client__merge_path_t **)a);

iow, you want a const structure, not the pointer itself.

>...

Cheers,
-g

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-09-25 03:53:28 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.