From 0615af6f4748e4f7dc6a4f034a9db636742cc3bd Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 21 Nov 2024 23:51:38 -0700 Subject: Use C23 (C++11) attribute syntax instead of __attribute__ --- libdhcp/dhcp_client.c | 6 +++--- libdhcp/include/libdhcp/client.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libdhcp') diff --git a/libdhcp/dhcp_client.c b/libdhcp/dhcp_client.c index 4f01f70..c5da59b 100644 --- a/libdhcp/dhcp_client.c +++ b/libdhcp/dhcp_client.c @@ -742,7 +742,7 @@ static void dhcp_client_setstate(struct dhcp_client *client, client->state = newstate; } -static __attribute__((noreturn)) void dhcp_client_run(struct dhcp_client *client, struct dhcp_recv_msg *scratch_msg) { +[[noreturn]] static void dhcp_client_run(struct dhcp_client *client, struct dhcp_recv_msg *scratch_msg) { assert(client); ssize_t r; @@ -880,8 +880,8 @@ static __attribute__((noreturn)) void dhcp_client_run(struct dhcp_client *client } } -__attribute__((noreturn)) void dhcp_client_main(implements_net_iface *iface, - char *self_hostname) { +[[noreturn]] void dhcp_client_main(implements_net_iface *iface, + char *self_hostname) { assert(iface); /* Even though a client ID is optional and not meaningful for diff --git a/libdhcp/include/libdhcp/client.h b/libdhcp/include/libdhcp/client.h index 1aa23d0..c3cb76f 100644 --- a/libdhcp/include/libdhcp/client.h +++ b/libdhcp/include/libdhcp/client.h @@ -69,7 +69,7 @@ #include -__attribute__((noreturn)) void dhcp_client_main(implements_net_iface *iface, - char *self_hostname); +[[noreturn]] void dhcp_client_main(implements_net_iface *iface, + char *self_hostname); #endif /* _LIBDHCP_CLIENT_H_ */ -- cgit v1.2.3-2-g168b