summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-16 12:01:52 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-16 12:03:46 +0200
commit2b32215fc331f88502e652bbc4d782950d37f5c5 (patch)
tree9d7975e486c7e5dd09021bd0fa9849f4c910b1be
parent9c3cbfb01eb25a7cec63d3d351cd2e2ba7e0c35b (diff)
telnet_interface: if we don't check for the return value, don't use ret
-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)