diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-21 23:51:38 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-23 13:56:38 -0700 |
commit | 0615af6f4748e4f7dc6a4f034a9db636742cc3bd (patch) | |
tree | a0c09720ca4c8670869b56d03e57431b46073f75 /libdhcp/dhcp_client.c | |
parent | 3064cb13577edd31d3a3ceb79b2bc72314ec208b (diff) |
Use C23 (C++11) attribute syntax instead of __attribute__
Diffstat (limited to 'libdhcp/dhcp_client.c')
-rw-r--r-- | libdhcp/dhcp_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |