ipvs: change some data types from int to bool
authorAndrea Claudi <aclaudi@redhat.com>
Sat, 16 Feb 2019 15:39:53 +0000 (16:39 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 Mar 2019 13:19:04 +0000 (14:19 +0100)
commitf25a9b8515a40cdd8cea9d38176d78266f5f941e
treede8a54f8228a84259bd7674bed9cd735066a7d6c
parent123f89c8aab782854d8b27b1c01f3f2cff33c20d
ipvs: change some data types from int to bool

Change the data type of the following variables from int to bool
across ipvs code:

  - found
  - loop
  - need_full_dest
  - need_full_svc
  - payload_csum

Also change the following functions to use bool full_entry param
instead of int:

  - ip_vs_genl_parse_dest()
  - ip_vs_genl_parse_service()

This patch does not change any functionality but makes the source
code slightly easier to read.

Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_ctl.c
net/netfilter/ipvs/ip_vs_ftp.c
net/netfilter/ipvs/ip_vs_proto_tcp.c
net/netfilter/ipvs/ip_vs_proto_udp.c
net/netfilter/ipvs/ip_vs_xmit.c