aboutsummaryrefslogtreecommitdiff
path: root/contrib/ofed/libibverbs/examples/uc_pingpong.c
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2020-07-15 13:26:15 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2020-07-15 13:26:15 +0000
commit8ca1ed33ec8ae8f1ae2737930d15ce3efab07292 (patch)
tree2edbcc621c073ac107320ec4d196c4ec4f74a415 /contrib/ofed/libibverbs/examples/uc_pingpong.c
parentd13def78ccef6dbc25c2e197089ee5fc4d7b82c3 (diff)
downloadsrc-8ca1ed33ec8ae8f1ae2737930d15ce3efab07292.tar.gz
src-8ca1ed33ec8ae8f1ae2737930d15ce3efab07292.zip
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
Notes
Notes: svn path=/head/; revision=363221
Diffstat (limited to 'contrib/ofed/libibverbs/examples/uc_pingpong.c')
-rw-r--r--contrib/ofed/libibverbs/examples/uc_pingpong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ofed/libibverbs/examples/uc_pingpong.c b/contrib/ofed/libibverbs/examples/uc_pingpong.c
index d6b2c5fdc26a..5eed25a2c25f 100644
--- a/contrib/ofed/libibverbs/examples/uc_pingpong.c
+++ b/contrib/ofed/libibverbs/examples/uc_pingpong.c
@@ -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;