fw/layer1: Fix compiler warning about mismatched ptr types
authorSylvain Munaut <tnt@246tNt.com>
Sun, 20 Jun 2010 23:32:30 +0000 (01:32 +0200)
committerHarald Welte <laforge@gnumonks.org>
Tue, 22 Jun 2010 04:37:09 +0000 (06:37 +0200)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
src/target/firmware/layer1/l23_api.c

index 90aef76..e511d8e 100644 (file)
@@ -96,7 +96,7 @@ struct msgb *l1ctl_msgb_alloc(uint8_t msg_type)
        l1h->msg_type = msg_type;
        l1h->flags = 0;
 
-       msg->l1h = l1h;
+       msg->l1h = (uint8_t *)l1h;
 
        return msg;
 }