summaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src/modules/hicn_light/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/libhicnctrl/src/modules/hicn_light/base.h')
-rw-r--r--ctrl/libhicnctrl/src/modules/hicn_light/base.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/ctrl/libhicnctrl/src/modules/hicn_light/base.h b/ctrl/libhicnctrl/src/modules/hicn_light/base.h
index fb6a68147..ea6fc1bc9 100644
--- a/ctrl/libhicnctrl/src/modules/hicn_light/base.h
+++ b/ctrl/libhicnctrl/src/modules/hicn_light/base.h
@@ -3,16 +3,13 @@
#include <hicn/ctrl/hicn-light.h>
-#if 1
#ifdef __APPLE__
#define RANDBYTE() (u8)(arc4random() & 0xFF)
#else
#define RANDBYTE() (u8)(random() & 0xFF)
#endif
-#else
-#define RANDBYTE() (u8)(rand() & 0xFF)
-#endif
+// TODO: is this used?
#define foreach_hc_command \
_(connection_add) \
_(connection_remove) \
@@ -36,14 +33,6 @@
_(subscription_add) \
_(subscription_remove)
-#if 0
-const char *command_type_str[] = {
-#define _(l, u) [COMMAND_TYPE_##u] = STRINGIZE(u),
- foreach_command_type
-#undef _
-};
-#endif
-
typedef union {
#define _(x) cmd_##x##_t x;
foreach_hc_command