diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-13 17:36:53 -0500 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-13 17:36:53 -0500 |
commit | c755f88f8c6862ef1497375df2d09454c99a0632 (patch) | |
tree | 31aea0e4d35aaf78324ffed113d6499e338d3feb /cmd/srv9p | |
parent | 4b918e6f721f34e4014fa3f0b5032037991e321f (diff) |
Gather macros into libmisc/macro.h
Diffstat (limited to 'cmd/srv9p')
-rw-r--r-- | cmd/srv9p/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/srv9p/main.c b/cmd/srv9p/main.c index 394bf84..b5cb122 100644 --- a/cmd/srv9p/main.c +++ b/cmd/srv9p/main.c @@ -11,6 +11,7 @@ #include <libhw/generic/net.h> #include <libhw/generic/alarmclock.h> #include <libhw/host_net.h> +#include <libmisc/macro.h> #include <util9p/static.h> #include "static.h" @@ -25,8 +26,6 @@ /* implementation *************************************************************/ -#define UNUSED(name) - /* file tree ******************************************************************/ #define FILE_COMMON(NAME) { \ @@ -79,7 +78,7 @@ static struct util9p_static_dir root = { }, }; -static implements_lib9p_srv_file *get_root(struct lib9p_srv_ctx *UNUSED(ctx), char *UNUSED(treename)) { +static implements_lib9p_srv_file *get_root(struct lib9p_srv_ctx *LM_UNUSED(ctx), char *LM_UNUSED(treename)) { return &root; } |