aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-05-23 06:14:44 +0000
committerHarald Welte <laforge@gnumonks.org>2009-05-23 06:14:44 +0000
commit703af9887d252a65cdc8d97e98ca23f7b521d21c (patch)
treefacbec6343b4925ecf11670be7c77a676235f84f
parent75d34a8b3dd884bcb6fb0ec32954e1b15e92c203 (diff)
fix some more compiler warnings
-rw-r--r--include/openbsc/telnet_interface.h2
-rw-r--r--src/telnet_interface.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/openbsc/telnet_interface.h b/include/openbsc/telnet_interface.h
index b5a0ec400..97357d794 100644
--- a/include/openbsc/telnet_interface.h
+++ b/include/openbsc/telnet_interface.h
@@ -47,4 +47,6 @@ struct telnet_connection {
void telnet_init(struct gsm_network *network, int port);
+int bsc_vty_init(struct gsm_network *net);
+
#endif
diff --git a/src/telnet_interface.c b/src/telnet_interface.c
index d812b17df..f4ffb529e 100644
--- a/src/telnet_interface.c
+++ b/src/telnet_interface.c
@@ -49,10 +49,12 @@ LLIST_HEAD(active_connections);
/* per network data */
static int telnet_new_connection(struct bsc_fd *fd, unsigned int what);
+#if 0
static int telnet_paging_callback(unsigned int subsys, unsigned int signal,
void *handler_data, void *signal_data);
static int telnet_sms_callback(unsigned int subsys, unsigned int signal,
void *handler_data, void *signal_data);
+#endif
static struct bsc_fd server_socket = {
.when = BSC_FD_READ,
@@ -131,7 +133,7 @@ int telnet_close_client(struct bsc_fd *fd) {
static int client_data(struct bsc_fd *fd, unsigned int what)
{
struct telnet_connection *conn = fd->data;
- int rc;
+ int rc = 0;
if (what & BSC_FD_READ) {
conn->fd.when &= ~BSC_FD_READ;