src: improve attributes
authorÁlvaro Fernández Rojas <[email protected]>
Thu, 13 Nov 2025 10:28:12 +0000 (11:28 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 17 Nov 2025 07:24:50 +0000 (08:24 +0100)
commit8ffe79e3f08691335e37548bfa92d9aaa9b2134e
tree21937403cb0c5d75a4f68f9c2c0379516960bbb5
parent8a8bb3c1a673e567c438472339084943df72540b
src: improve attributes

- Properly guard odhcp6c.h attributes with `#ifndef` to avoid redefining
them when including external headers.
- Also convert the remaining __attribute__ usages to the custom
declarations.
- Consolidate custom declarations with _o_ prefix.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/307
14 files changed:
src/config.c
src/dhcpv4.c
src/dhcpv4.h
src/dhcpv6-ia.c
src/dhcpv6-pxe.c
src/dhcpv6.c
src/dhcpv6.h
src/ndp.c
src/netlink.c
src/odhcpd.c
src/odhcpd.h
src/router.c
src/statefiles.c
src/ubus.c