]> git.proxmox.com Git - mirror_iproute2.git/commit
Include bsd/string.h only in include/utils.h
authorLuca Boccassi <bluca@debian.org>
Thu, 1 Nov 2018 22:25:27 +0000 (22:25 +0000)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 5 Nov 2018 16:38:32 +0000 (08:38 -0800)
commit6d2fd4a53f63bd20667b1a8f2ec8fde1fc3a54d4
tree9cc899081b9e4b50a2ecccc7f31eac17c51e607c
parent39776a8665f2db1255ebed1f7cc992f69437bc36
Include bsd/string.h only in include/utils.h

This is simpler and cleaner, and avoids having to include the header
from every file where the functions are used. The prototypes of the
internal implementation are in this header, so utils.h will have to be
included anyway for those.

Fixes: 508f3c231efb ("Use libbsd for strlcpy if available")
Signed-off-by: Luca Boccassi <bluca@debian.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
15 files changed:
genl/ctrl.c
include/utils.h
ip/iplink.c
ip/ipnetns.c
ip/iproute_lwtunnel.c
ip/ipvrf.c
ip/ipxfrm.c
ip/tunnel.c
ip/xfrm_state.c
lib/bpf.c
lib/fs.c
lib/inet_proto.c
misc/ss.c
tc/em_ipset.c
tc/m_pedit.c