aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty/telnet_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vty/telnet_interface.c')
-rw-r--r--src/vty/telnet_interface.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vty/telnet_interface.c b/src/vty/telnet_interface.c
index 7631f804..1a285102 100644
--- a/src/vty/telnet_interface.c
+++ b/src/vty/telnet_interface.c
@@ -94,7 +94,6 @@ extern struct host host;
static void print_welcome(int fd)
{
- int ret;
static const char *msg1 = "Welcome to the ";
static const char *msg2 = " control interface\r\n";
const char *app_name = "<unnamed>";
@@ -102,12 +101,12 @@ static void print_welcome(int fd)
if (host.app_info->name)
app_name = host.app_info->name;
- ret = write(fd, msg1, strlen(msg1));
- ret = write(fd, app_name, strlen(app_name));
- ret = write(fd, msg2, strlen(msg2));
+ write(fd, msg1, strlen(msg1));
+ write(fd, app_name, strlen(app_name));
+ write(fd, msg2, strlen(msg2));
if (host.app_info->copyright)
- ret = write(fd, host.app_info->copyright, strlen(host.app_info->copyright));
+ write(fd, host.app_info->copyright, strlen(host.app_info->copyright));
}
int telnet_close_client(struct osmo_fd *fd)