summaryrefslogtreecommitdiffstats
path: root/runtime/transport/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/transport/control.c')
-rw-r--r--runtime/transport/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c
index 1699f54d..23e99400 100644
--- a/runtime/transport/control.c
+++ b/runtime/transport/control.c
@@ -40,7 +40,7 @@ struct sock *stp_control;
static struct hlist_head *handlers;
/* protection for the handlers table */
-static DEFINE_SPINLOCK(handlers_lock);
+static spinlock_t handlers_lock = SPIN_LOCK_UNLOCKED;
/**
* _stp_lookup_handler - look up the command handler in the handlers table