diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-08-01 03:57:55 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-08-03 04:21:23 +0200 |
commit | a9c535270d1224ff0e23fa6657e52be4659cf1ff (patch) | |
tree | 100c6e2e7368226b1835385e6fda95cfd17116ac /tcpip | |
parent | 2b87888e8428bd55e2b30533914f903782a0c27c (diff) |
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 <ralf@linux-mips.org>
Diffstat (limited to 'tcpip')
-rw-r--r-- | tcpip/ttylinkd.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |