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:
Vincent JARDIN 2017-09-11 21:56:30 +02:00 committed by Azat Khuzhin
parent 9c720b7073
commit 7cc034c37d
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -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
{