From a9c535270d1224ff0e23fa6657e52be4659cf1ff Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 1 Aug 2017 03:57:55 +0200 Subject: treewide: Remove useless casts of function return value to void. Arguably useful in documenting the return value is intentionally ignored I think it's just cluttering the screen. This is using the following semantic patch: @castvoid@ expression F; @@ - (void) F + F (...) Signed-off-by: Ralf Baechle --- tcpip/ttylinkd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tcpip/ttylinkd.c') diff --git a/tcpip/ttylinkd.c b/tcpip/ttylinkd.c index 0412597..f32499c 100644 --- a/tcpip/ttylinkd.c +++ b/tcpip/ttylinkd.c @@ -340,7 +340,7 @@ int main(int argc, char *argv[]) /* Now look for an invite */ msg.type = LOOK_UP; - (void) send_control(ctl_skt, rem_addr, msg, &resp); + send_control(ctl_skt, rem_addr, msg, &resp); /* The person not there? Send an announce and wake him up */ msg.type = ANNOUNCE; @@ -675,7 +675,7 @@ static void do_talk(int skt) if (send_sysop_data(inbuf, i) < 0) { strcpy(outbuf, "User closed connection.\n"); - (void) write(skt, outbuf, strlen(outbuf)); + write(skt, outbuf, strlen(outbuf)); return; } } @@ -685,7 +685,7 @@ static void do_talk(int skt) if (i <= 0) { strcpy(outbuf, "User closed connection.\n"); - (void) write(skt, outbuf, strlen(outbuf)); + write(skt, outbuf, strlen(outbuf)); return; } if (send_user_data(skt, outbuf, i) < 0) -- cgit v1.2.3