summaryrefslogtreecommitdiff
path: root/libdhcp
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-21 23:51:38 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-23 13:56:38 -0700
commit0615af6f4748e4f7dc6a4f034a9db636742cc3bd (patch)
treea0c09720ca4c8670869b56d03e57431b46073f75 /libdhcp
parent3064cb13577edd31d3a3ceb79b2bc72314ec208b (diff)
Use C23 (C++11) attribute syntax instead of __attribute__
Diffstat (limited to 'libdhcp')
-rw-r--r--libdhcp/dhcp_client.c6
-rw-r--r--libdhcp/include/libdhcp/client.h4
2 files changed, 5 insertions, 5 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
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 <libhw/generic/net.h>
-__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_ */