]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon: fix some use of "if defined"
authorVincent Bernat <vincent@bernat.ch>
Sun, 25 Apr 2021 17:08:26 +0000 (19:08 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sun, 25 Apr 2021 17:08:26 +0000 (19:08 +0200)
commitfe4273974c10a7abf4795c4091bea550e15f71b2
tree0d4b528ee02aa0c137bae4791811fd8200e99c43
parent3020ec35c0a2de36ebe54e9564551c3663be7a3e
daemon: fix some use of "if defined"

`#if defined HOST_OS_FREEBSD || HOST_OS_NETBSD` is not the same as
`#if defined HOST_OS_FREEBSD || defined HOST_OS_NETBSD`. This doesn't
really matter in our case, but for consistency, fix these cases. Also,
don't use parentheses as they are not useful in our case (or we should
put them everywhere).
src/daemon/interfaces-bsd.c
src/daemon/lldpd.h
src/daemon/priv.c
src/daemon/protocols/cdp.c
src/lldpd-structs.h