mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 05:48:51 -04:00
test: fix warning
In function ‘send_a_byte_cb’: test/regress.c:1853:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] (void) write(*sockp, "A", 1); (cherry picked from commit 56010f37ae5b49881f7fd255d5c8a936e1c36909)
This commit is contained in:
parent
9c720b7073
commit
7cc034c37d
@ -1850,7 +1850,8 @@ static void send_a_byte_cb(evutil_socket_t fd, short what, void *arg)
|
||||
{
|
||||
evutil_socket_t *sockp = arg;
|
||||
(void) fd; (void) what;
|
||||
(void) write(*sockp, "A", 1);
|
||||
if (write(*sockp, "A", 1) < 0)
|
||||
tt_fail_perror("write");
|
||||
}
|
||||
struct read_not_timeout_param
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user