diff options
author | eadler <eadler@FreeBSD.org> | 2015-04-19 09:07:57 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2015-04-19 09:07:57 +0000 |
commit | 047338ae8a4a2954e70193f41c3f2c187a4def32 (patch) | |
tree | 896ea6509bf0485a111cf8595c122ef8ef842ec5 | |
parent | 97e33c68bcd1ed3078ddfbdfe034d98a01badc59 (diff) | |
download | FreeBSD-src-047338ae8a4a2954e70193f41c3f2c187a4def32.zip FreeBSD-src-047338ae8a4a2954e70193f41c3f2c187a4def32.tar.gz |
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
-rw-r--r-- | usr.sbin/inetd/inetd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index c48f33c..2109b1c 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -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, '/'))) { |