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

Re: svn commit: r39868 - trunk/subversion/libsvn_subr

From: Greg Stein <gstein_at_gmail.com>
Date: Fri, 9 Oct 2009 13:40:46 -0400

On Thu, Oct 8, 2009 at 08:00, Julian Foad <julianfoad_at_btopenworld.com> wrote:
> Author: julianfoad
> Date: Thu Oct  8 05:00:11 2009
> New Revision: 39868
>
> Log:
> Remove an instance of declaration-after-code.
>
> * subversion/libsvn_subr/auth.c
>  (svn_auth_get_platform_specific_provider): Initialiase a local var in its
>    definition.
>
> Modified:
>   trunk/subversion/libsvn_subr/auth.c
>
> Modified: trunk/subversion/libsvn_subr/auth.c
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/libsvn_subr/auth.c?pathrev=39868&r1=39867&r2=39868
> ==============================================================================
> --- trunk/subversion/libsvn_subr/auth.c Thu Oct  8 03:18:40 2009        (r39867)
> +++ trunk/subversion/libsvn_subr/auth.c Thu Oct  8 05:00:11 2009        (r39868)
> @@ -415,8 +415,8 @@ svn_auth_get_platform_specific_provider
>                           dso,
>                           version_function_name) == 0)
>             {
> -              svn_version_func_t version_function;
> -              version_function = (svn_version_func_t) version_function_symbol;
> +              svn_version_func_t version_function
> +                = (svn_version_func_t) version_function_symbol;

Is that cast really needed? If so, then that would be bad...
mismatched prototypes.. ugh.

Cheers,
-g

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2405611
Received on 2009-10-09 19:40:57 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.