diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-11-17 06:12:16 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-11-17 06:12:16 +0100 |
commit | 986c3d76db7795e565d0a7be5402d4bfe5e1ba93 (patch) | |
tree | 860b61b067d003268dc68d4734284ac19b11d0b5 | |
parent | d8cfc90e22e0645bda0c5f581c68181c3be9079b (diff) |
fix some more compiler warnings
-rw-r--r-- | openbsc/src/input/misdn.c | 2 | ||||
-rw-r--r-- | openbsc/src/silent_call.c | 1 | ||||
-rw-r--r-- | openbsc/src/vty_interface.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/input/misdn.c b/openbsc/src/input/misdn.c index 82268e811..135cfad48 100644 --- a/openbsc/src/input/misdn.c +++ b/openbsc/src/input/misdn.c @@ -262,7 +262,7 @@ static int handle_tsX_write(struct bsc_fd *bfd) ret = send(bfd->fd, tx_buf, sizeof(*hh) + BCHAN_TX_GRAN, 0); if (ret < sizeof(*hh) + BCHAN_TX_GRAN) - DEBUGP(DMIB, "send returns %d instead of %u\n", ret, + DEBUGP(DMIB, "send returns %d instead of %lu\n", ret, sizeof(*hh) + BCHAN_TX_GRAN); return ret; diff --git a/openbsc/src/silent_call.c b/openbsc/src/silent_call.c index 3161834c2..82b656327 100644 --- a/openbsc/src/silent_call.c +++ b/openbsc/src/silent_call.c @@ -32,6 +32,7 @@ #include <openbsc/gsm_data.h> #include <openbsc/gsm_subscriber.h> #include <openbsc/abis_rsl.h> +#include <openbsc/chan_alloc.h> static int paging_cb_silent(unsigned int hooknum, unsigned int event, struct msgb *msg, void *_lchan, void *_data) diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index 9aa970696..894146b6f 100644 --- a/openbsc/src/vty_interface.c +++ b/openbsc/src/vty_interface.c @@ -620,7 +620,7 @@ DEFUN(show_e1ts, "show e1_timeslot [line_nr] [ts_nr]", SHOW_STR "Display information about a E1 timeslot\n") { - struct e1inp_line *line; + struct e1inp_line *line = NULL; struct e1inp_ts *ts; int ts_nr; |