diff options
Diffstat (limited to 'lib9p_util')
-rw-r--r-- | lib9p_util/static.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib9p_util/static.c b/lib9p_util/static.c index fd6f154..454b57e 100644 --- a/lib9p_util/static.c +++ b/lib9p_util/static.c @@ -5,11 +5,11 @@ */ #include <libmisc/assert.h> +#include <libmisc/macro.h> #include <libmisc/vcall.h> #include <util9p/static.h> -#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 }) @@ -31,7 +31,7 @@ static void util9p_static_common_free(implements_lib9p_srv_file *_self, struct l /* do nothing */ } -static uint32_t util9p_static_common_io(implements_lib9p_srv_file *_self, struct lib9p_srv_ctx *ctx, lib9p_o_t UNUSED(flags)) { +static uint32_t util9p_static_common_io(implements_lib9p_srv_file *_self, struct lib9p_srv_ctx *ctx, lib9p_o_t LM_UNUSED(flags)) { _util9p_static_common *self = VCALL_SELF(_util9p_static_common, implements_lib9p_srv_file, _self); assert(self); assert(ctx); @@ -40,7 +40,7 @@ static uint32_t util9p_static_common_io(implements_lib9p_srv_file *_self, struct } static void util9p_static_common_wstat(implements_lib9p_srv_file *_self, struct lib9p_srv_ctx *ctx, - struct lib9p_stat UNUSED(new)) { + struct lib9p_stat LM_UNUSED(new)) { _util9p_static_common *self = VCALL_SELF(_util9p_static_common, implements_lib9p_srv_file, _self); assert(self); assert(ctx); @@ -107,8 +107,8 @@ static implements_lib9p_srv_file *util9p_static_dir_dopen(implements_lib9p_srv_f } static implements_lib9p_srv_file *util9p_static_dir_dcreate(implements_lib9p_srv_file *_self, struct lib9p_srv_ctx *ctx, - char *UNUSED(childname), - lib9p_dm_t UNUSED(perm), lib9p_o_t UNUSED(flags)) { + char *LM_UNUSED(childname), + lib9p_dm_t LM_UNUSED(perm), lib9p_o_t LM_UNUSED(flags)) { struct util9p_static_dir *self = VCALL_SELF(struct util9p_static_dir, implements_lib9p_srv_file, _self); assert(self); assert(ctx); |