diff options
Diffstat (limited to 'mmss/gmrf.cpp')
-rw-r--r-- | mmss/gmrf.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/mmss/gmrf.cpp b/mmss/gmrf.cpp index 9db3c43..c7b2fbc 100644 --- a/mmss/gmrf.cpp +++ b/mmss/gmrf.cpp @@ -34,25 +34,25 @@ using namespace MMSS; extern "C" { -gmrf_addr_t gmrf_iface_get_addr(gmrf_t *gmrf, gmrf_iface_t *iface) { +gmrf_addr_t gmrf_iface_get_addr(gmrf_t *gmrf UNUSED, gmrf_iface_t *iface) { return *(static_cast<iface_t*>(iface)->get_address()); } -const char* gmrf_iface_get_name(gmrf_t *gmrf, gmrf_iface_t *iface) { +const char* gmrf_iface_get_name(gmrf_t *gmrf UNUSED, gmrf_iface_t *iface) { return static_cast<iface_t*>(iface)->get_name().c_str(); } -size_t gmrf_iface_get_mtu(gmrf_t *gmrf, gmrf_iface_t *iface) { +size_t gmrf_iface_get_mtu(gmrf_t *gmrf UNUSED, gmrf_iface_t *iface) { return static_cast<iface_t*>(iface)->get_network()->get_mtu(); } -bool gmrf_iface_send(gmrf_t *gmrf, gmrf_iface_t *iface, const void *data, size_t len, const gmrf_addr_t *dest) { +bool gmrf_iface_send(gmrf_t *gmrf UNUSED, gmrf_iface_t *iface, const void *data, size_t len, const gmrf_addr_t *dest) { static_cast<iface_t*>(iface)->send(data, len, dest); return true; } -bool gmrf_iface_send_bc(gmrf_t *gmrf, gmrf_iface_t *iface, const void *data, size_t len) { +bool gmrf_iface_send_bc(gmrf_t *gmrf UNUSED, gmrf_iface_t *iface, const void *data, size_t len) { static_cast<iface_t*>(iface)->send_bc(data, len); return true; @@ -86,19 +86,19 @@ void gmrf_logf(gmrf_t *gmrf, int priority, const char *format, ...) { va_end(ap); } -void gmrf_debug_init(gmrf_t *gmrf, const uint8_t *node_id, size_t len) { +void gmrf_debug_init(gmrf_t *gmrf UNUSED, const uint8_t *node_id UNUSED, size_t len UNUSED) { } -void gmrf_debug_neigh(gmrf_t *gmrf, gmrf_iface_t *iface, const gmrf_addr_t *addr, float rxcost, float txcost) { +void gmrf_debug_neigh(gmrf_t *gmrf UNUSED, gmrf_iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED, float rxcost UNUSED, float txcost UNUSED) { } -void gmrf_debug_neigh_lost(gmrf_t *gmrf, gmrf_iface_t *iface, const gmrf_addr_t *addr) { +void gmrf_debug_neigh_lost(gmrf_t *gmrf UNUSED, gmrf_iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED) { } -void gmrf_debug_route(gmrf_t *gmrf, const uint8_t *node_id, size_t len, gmrf_iface_t *iface, const gmrf_addr_t *addr, int metric) { +void gmrf_debug_route(gmrf_t *gmrf UNUSED, const uint8_t *node_id UNUSED, size_t len UNUSED, gmrf_iface_t *iface UNUSED, const gmrf_addr_t *addr UNUSED, int metric UNUSED) { } -void gmrf_debug_route_lost(gmrf_t *gmrf, const uint8_t *node_id, size_t len) { +void gmrf_debug_route_lost(gmrf_t *gmrf UNUSED, const uint8_t *node_id UNUSED, size_t len UNUSED) { } } |