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 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdhcp/dhcp_client.c') 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 -- cgit v1.2.3-2-g168b