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 /cmd/srv9p | |
parent | 3064cb13577edd31d3a3ceb79b2bc72314ec208b (diff) |
Use C23 (C++11) attribute syntax instead of __attribute__
Diffstat (limited to 'cmd/srv9p')
-rw-r--r-- | cmd/srv9p/main.c | 2 | ||||
-rw-r--r-- | cmd/srv9p/static9p.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/srv9p/main.c b/cmd/srv9p/main.c index be34daa..05368e5 100644 --- a/cmd/srv9p/main.c +++ b/cmd/srv9p/main.c @@ -25,7 +25,7 @@ /* implementation *************************************************************/ -#define UNUSED(name) /* name __attribute__((unused)) */ +#define UNUSED(name) /* file tree ******************************************************************/ diff --git a/cmd/srv9p/static9p.c b/cmd/srv9p/static9p.c index 90f3856..b5b18e0 100644 --- a/cmd/srv9p/static9p.c +++ b/cmd/srv9p/static9p.c @@ -9,7 +9,7 @@ #include "static9p.h" -#define UNUSED(name) /* name __attribute__((unused)) */ +#define UNUSED(name) #define p9_str(cstr) ((struct lib9p_s){ .len = strlen(cstr), .utf8 = cstr }) #define p9_nulstr ((struct lib9p_s){ .len = 0, .utf8 = NULL }) |