mirror of https://gerrit.osmocom.org/libosmocore
telnet_interface: if we don't check for the return value, don't use ret
This commit is contained in:
parent
9c3cbfb01e
commit
2b32215fc3
|
@ -94,7 +94,6 @@ extern struct host host;
|
||||||
|
|
||||||
static void print_welcome(int fd)
|
static void print_welcome(int fd)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
static const char *msg1 = "Welcome to the ";
|
static const char *msg1 = "Welcome to the ";
|
||||||
static const char *msg2 = " control interface\r\n";
|
static const char *msg2 = " control interface\r\n";
|
||||||
const char *app_name = "<unnamed>";
|
const char *app_name = "<unnamed>";
|
||||||
|
@ -102,12 +101,12 @@ static void print_welcome(int fd)
|
||||||
if (host.app_info->name)
|
if (host.app_info->name)
|
||||||
app_name = host.app_info->name;
|
app_name = host.app_info->name;
|
||||||
|
|
||||||
ret = write(fd, msg1, strlen(msg1));
|
write(fd, msg1, strlen(msg1));
|
||||||
ret = write(fd, app_name, strlen(app_name));
|
write(fd, app_name, strlen(app_name));
|
||||||
ret = write(fd, msg2, strlen(msg2));
|
write(fd, msg2, strlen(msg2));
|
||||||
|
|
||||||
if (host.app_info->copyright)
|
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)
|
int telnet_close_client(struct osmo_fd *fd)
|
||||||
|
|
Loading…
Reference in New Issue