Fix some compiler warnings...
authorHolger Hans Peter Freyther <zecke@selfish.org>
Fri, 5 Mar 2010 18:27:40 +0000 (19:27 +0100)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Mon, 8 Mar 2010 04:02:27 +0000 (05:02 +0100)
Some real issues are still left and we need to act on them.

src/target/firmware/apps/l1test/main.c
src/target/firmware/comm/msgb.c
src/target/firmware/include/comm/msgb.h
src/target/firmware/layer1/l23_api.c

index f7c10ed..7e62050 100644 (file)
@@ -116,8 +116,6 @@ enum l1test_state {
        STATE_FB,
 };
 
-static enum l1test_state l1test_state;
-
 static void l1test_state_change(enum l1test_state new_state)
 {
        switch (new_state) {
index d96d098..d412844 100644 (file)
@@ -24,6 +24,7 @@
 #include <sys/types.h>
 
 #include <debug.h>
+#include <delay.h>
 
 #include <osmocore/msgb.h>
 
index 83e6540..3113fa2 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <osmocore/linuxlist.h>
+#include <console.h>
 
 struct msgb {
        struct llist_head list;
index a6c6dbe..a92a5df 100644 (file)
@@ -103,7 +103,7 @@ struct msgb *l1_create_l2_msg(int msg_type, uint32_t fn, uint16_t snr,
        return msg;
 }
 
-/* callbakc from SERCOMM when L2 sends a message to L1 */
+/* callback from SERCOMM when L2 sends a message to L1 */
 static void l1a_l23_rx_cb(uint8_t dlci, struct msgb *msg)
 {
        struct l1ctl_info_ul *ul = (struct l1ctl_info_ul *) msg->data;