diff --git a/daemon/websocket.c b/daemon/websocket.c index 81f359c91..1844f56c7 100644 --- a/daemon/websocket.c +++ b/daemon/websocket.c @@ -314,12 +314,6 @@ static const char *websocket_http_ping(struct websocket_message *wm) { } -static void __g_string_free(GString **s) { - g_string_free(*s, TRUE); -} -static void __g_hash_table_destroy(GHashTable **s) { - g_hash_table_destroy(*s); -} static const char *websocket_http_metrics(struct websocket_message *wm) { ilogs(http, LOG_DEBUG, "Respoding to GET /metrics"); diff --git a/lib/auxlib.h b/lib/auxlib.h index a4141cb05..bac6e33f5 100644 --- a/lib/auxlib.h +++ b/lib/auxlib.h @@ -291,6 +291,12 @@ INLINE void g_tree_clear(GTree *t) { g_tree_remove(t, k); } } +INLINE void __g_string_free(GString **s) { + g_string_free(*s, TRUE); +} +INLINE void __g_hash_table_destroy(GHashTable **s) { + g_hash_table_destroy(*s); +} #endif