Hi,

The svc_init() call is intended to precede any call to tirpc_control, and
we do want this call to default-initialize.

Regards,

Matt

----- fangw...@huawei.com wrote:

> From: Wei Fang <fangw...@huawei.com>
> 
> ->warnx has been assigned defaultly. If we assigned here when
> SVC_INIT_WARNX unsetted, ->warnx assigned by tirpc_control would be
> overwrited to default, which we don't want to happen.
> 
> Signed-off-by: Wei Fang <fangw...@huawei.com>
> ---
>  src/svc.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/src/svc.c b/src/svc.c
> index 1ff1c84..c91386c 100644
> --- a/src/svc.c
> +++ b/src/svc.c
> @@ -147,8 +147,6 @@ svc_init(svc_init_params *params)
>  
>       if (params->flags & SVC_INIT_WARNX)
>               __ntirpc_pkg_params.warnx = params->warnx;
> -     else
> -             __ntirpc_pkg_params.warnx = warnx;
>  
>       /* svc_vc */
>       __svc_params->xprt_u.vc.nconns = 0;
> -- 
> 1.7.1

-- 
Matt Benjamin
CohortFS, LLC.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://cohortfs.com

tel.  734-761-4689 
fax.  734-769-8938 
cel.  734-216-5309 

------------------------------------------------------------------------------
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to