timer: use (void) for functions that take no arguments
[osmocom-bb.git] / src / msgb.c
index 12a839a..f9841ed 100644 (file)
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
-#include <sys/types.h>
 
-#include <osmocore/msgb.h>
+#include <osmocom/core/msgb.h>
 //#include <openbsc/gsm_data.h>
-#include <osmocore/talloc.h>
+#include <osmocom/core/talloc.h>
 //#include <openbsc/debug.h>
 
 void *tall_msgb_ctx;
@@ -99,3 +98,8 @@ uint16_t msgb_length(const struct msgb *msg)
 {
        return msg->len;
 }
+
+void msgb_set_talloc_ctx(void *ctx)
+{
+       tall_msgb_ctx = ctx;
+}