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:
parent
d13def78cc
commit
8ca1ed33ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363221
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user