aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-16 19:30:28 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-16 19:30:28 +0200
commit88907a2f92523c56bf5250c3c75230601eb2f604 (patch)
treeb61486a788321d6655b6f6b933d9b7ba9cc2df07 /openbsc
parent9a87ad923d0b044d3f0c58079e89cbce6db569a8 (diff)
telnet: cosmetic coding style changes
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/telnet_interface.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/openbsc/src/telnet_interface.c b/openbsc/src/telnet_interface.c
index c2be1b8d5..853cdf9a1 100644
--- a/openbsc/src/telnet_interface.c
+++ b/openbsc/src/telnet_interface.c
@@ -53,7 +53,8 @@ static struct bsc_fd server_socket = {
.priv_nr = 0,
};
-void telnet_init(struct gsm_network *network, int port) {
+void telnet_init(struct gsm_network *network, int port)
+{
struct sockaddr_in sock_addr;
int fd, on = 1;
@@ -93,7 +94,8 @@ void telnet_init(struct gsm_network *network, int port) {
extern const char *openbsc_copyright;
-static void print_welcome(int fd) {
+static void print_welcome(int fd)
+{
int ret;
static char *msg =
"Welcome to the OpenBSC Control interface\n";
@@ -102,7 +104,8 @@ static void print_welcome(int fd) {
ret = write(fd, openbsc_copyright, strlen(openbsc_copyright));
}
-int telnet_close_client(struct bsc_fd *fd) {
+int telnet_close_client(struct bsc_fd *fd)
+{
struct telnet_connection *conn = (struct telnet_connection*)fd->data;
close(fd->fd);
@@ -141,7 +144,8 @@ static int client_data(struct bsc_fd *fd, unsigned int what)
return rc;
}
-static int telnet_new_connection(struct bsc_fd *fd, unsigned int what) {
+static int telnet_new_connection(struct bsc_fd *fd, unsigned int what)
+{
struct telnet_connection *connection;
struct sockaddr_in sockaddr;
socklen_t len = sizeof(sockaddr);