Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2015 12:17:31 +0300
From:      Sergey Kandaurov <pluknet@freebsd.org>
To:        Eitan Adler <eadler@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r281734 - head/usr.sbin/inetd
Message-ID:  <CAE-mSOLw7hHAbzJ1MmkhEURQDFhyyokEfbF56U=EuoQXn_T=Nw@mail.gmail.com>
In-Reply-To: <201504190907.t3J97wiZ063971@svn.freebsd.org>
References:  <201504190907.t3J97wiZ063971@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 April 2015 at 12:07, Eitan Adler <eadler@freebsd.org> wrote:
> Author: eadler
> Date: Sun Apr 19 09:07:57 2015
> New Revision: 281734
> URL: https://svnweb.freebsd.org/changeset/base/281734
>
> Log:
>   identd: remove redundant zeroing
>         se_rpc_lowvers was set to 0 twice, so remove one of them
>         I can not find any other variable which they may have been a typo of.
>
>   Reported by:  gcc5.1
>
> Modified:
>   head/usr.sbin/inetd/inetd.c
>
> Modified: head/usr.sbin/inetd/inetd.c
> ==============================================================================
> --- head/usr.sbin/inetd/inetd.c Sun Apr 19 08:45:37 2015        (r281733)
> +++ head/usr.sbin/inetd/inetd.c Sun Apr 19 09:07:57 2015        (r281734)
> @@ -1752,8 +1752,7 @@ more:
>                  memmove(sep->se_proto, sep->se_proto + 4,
>                      strlen(sep->se_proto) + 1 - 4);
>                  sep->se_rpc = 1;
> -                sep->se_rpc_prog = sep->se_rpc_lowvers =
> -                       sep->se_rpc_lowvers = 0;
> +                sep->se_rpc_prog = sep->se_rpc_lowvers = 0;
>                 memcpy(&sep->se_ctrladdr4, bind_sa4,
>                        sizeof(sep->se_ctrladdr4));
>                  if ((versp = strrchr(sep->se_service, '/'))) {
>

se_rpc_highvers ?
They both seem to be used prezeroed in a later sscanf().

-- 
wbr,
pluknet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSOLw7hHAbzJ1MmkhEURQDFhyyokEfbF56U=EuoQXn_T=Nw>