Fix style in r363220

Apply the style change Kostik suggested in the review.

Reported by:	kib
MFC after:	2 weeks
X-MFC with:	r363220
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D25676
This commit is contained in:
Eric van Gyzen 2020-07-15 13:26:15 +00:00
parent d13def78cc
commit 8ca1ed33ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363221
5 changed files with 5 additions and 5 deletions

View File

@ -273,7 +273,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
return NULL;
}
if (listen(sockfd, 1)) {
if (listen(sockfd, 1) < 0) {
perror("listen() failed");
close(sockfd);
return NULL;

View File

@ -283,7 +283,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
return NULL;
}
if (listen(sockfd, 1)) {
if (listen(sockfd, 1) < 0) {
perror("listen() failed");
close(sockfd);
return NULL;

View File

@ -247,7 +247,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
return NULL;
}
if (listen(sockfd, 1)) {
if (listen(sockfd, 1) < 0) {
perror("listen() failed");
close(sockfd);
return NULL;

View File

@ -245,7 +245,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
return NULL;
}
if (listen(sockfd, 1)) {
if (listen(sockfd, 1) < 0) {
perror("listen() failed");
close(sockfd);
return NULL;

View File

@ -630,7 +630,7 @@ static int pp_server_connect(int port)
return 1;
}
if (listen(sockfd, ctx.num_clients)) {
if (listen(sockfd, ctx.num_clients) < 0) {
perror("listen() failed");
close(sockfd);
return 1;