summaryrefslogtreecommitdiff
path: root/libhw/host_net.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-13 17:36:53 -0500
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-13 17:36:53 -0500
commitc755f88f8c6862ef1497375df2d09454c99a0632 (patch)
tree31aea0e4d35aaf78324ffed113d6499e338d3feb /libhw/host_net.c
parent4b918e6f721f34e4014fa3f0b5032037991e321f (diff)
Gather macros into libmisc/macro.h
Diffstat (limited to 'libhw/host_net.c')
-rw-r--r--libhw/host_net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libhw/host_net.c b/libhw/host_net.c
index 2ba8b23..917e764 100644
--- a/libhw/host_net.c
+++ b/libhw/host_net.c
@@ -20,6 +20,7 @@
#include <libcr/coroutine.h>
#include <libmisc/assert.h>
+#include <libmisc/macro.h>
#include <libmisc/vcall.h>
#include <libhw/generic/alarmclock.h>
@@ -31,11 +32,9 @@
/* common *********************************************************************/
-#define UNUSED(name)
-
static int hostnet_sig_io = 0;
-static void hostnet_handle_sig_io(int UNUSED(sig), siginfo_t *info, void *UNUSED(ucontext)) {
+static void hostnet_handle_sig_io(int LM_UNUSED(sig), siginfo_t *info, void *LM_UNUSED(ucontext)) {
cr_unpause_from_intrhandler((cid_t)info->si_value.sival_int);
}