From owner-svn-src-head@freebsd.org Wed Jul 15 13:26:17 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E335E365BF0; Wed, 15 Jul 2020 13:26:17 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B6J7F2rQKz4g3j; Wed, 15 Jul 2020 13:26:17 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 85E0517E80; Wed, 15 Jul 2020 13:26:16 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06FDQGCY017663; Wed, 15 Jul 2020 13:26:16 GMT (envelope-from vangyzen@FreeBSD.org) Received: (from vangyzen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06FDQFmN017658; Wed, 15 Jul 2020 13:26:15 GMT (envelope-from vangyzen@FreeBSD.org) Message-Id: <202007151326.06FDQFmN017658@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: vangyzen set sender to vangyzen@FreeBSD.org using -f From: Eric van Gyzen Date: Wed, 15 Jul 2020 13:26:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r363221 - head/contrib/ofed/libibverbs/examples X-SVN-Group: head X-SVN-Commit-Author: vangyzen X-SVN-Commit-Paths: head/contrib/ofed/libibverbs/examples X-SVN-Commit-Revision: 363221 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2020 13:26:18 -0000 Author: vangyzen Date: Wed Jul 15 13:26:15 2020 New Revision: 363221 URL: https://svnweb.freebsd.org/changeset/base/363221 Log: 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 Modified: head/contrib/ofed/libibverbs/examples/rc_pingpong.c head/contrib/ofed/libibverbs/examples/srq_pingpong.c head/contrib/ofed/libibverbs/examples/uc_pingpong.c head/contrib/ofed/libibverbs/examples/ud_pingpong.c head/contrib/ofed/libibverbs/examples/xsrq_pingpong.c Modified: head/contrib/ofed/libibverbs/examples/rc_pingpong.c ============================================================================== --- head/contrib/ofed/libibverbs/examples/rc_pingpong.c Wed Jul 15 13:17:16 2020 (r363220) +++ head/contrib/ofed/libibverbs/examples/rc_pingpong.c Wed Jul 15 13:26:15 2020 (r363221) @@ -273,7 +273,7 @@ static struct pingpong_dest *pp_server_exch_dest(struc return NULL; } - if (listen(sockfd, 1)) { + if (listen(sockfd, 1) < 0) { perror("listen() failed"); close(sockfd); return NULL; Modified: head/contrib/ofed/libibverbs/examples/srq_pingpong.c ============================================================================== --- head/contrib/ofed/libibverbs/examples/srq_pingpong.c Wed Jul 15 13:17:16 2020 (r363220) +++ head/contrib/ofed/libibverbs/examples/srq_pingpong.c Wed Jul 15 13:26:15 2020 (r363221) @@ -283,7 +283,7 @@ static struct pingpong_dest *pp_server_exch_dest(struc return NULL; } - if (listen(sockfd, 1)) { + if (listen(sockfd, 1) < 0) { perror("listen() failed"); close(sockfd); return NULL; Modified: head/contrib/ofed/libibverbs/examples/uc_pingpong.c ============================================================================== --- head/contrib/ofed/libibverbs/examples/uc_pingpong.c Wed Jul 15 13:17:16 2020 (r363220) +++ head/contrib/ofed/libibverbs/examples/uc_pingpong.c Wed Jul 15 13:26:15 2020 (r363221) @@ -247,7 +247,7 @@ static struct pingpong_dest *pp_server_exch_dest(struc return NULL; } - if (listen(sockfd, 1)) { + if (listen(sockfd, 1) < 0) { perror("listen() failed"); close(sockfd); return NULL; Modified: head/contrib/ofed/libibverbs/examples/ud_pingpong.c ============================================================================== --- head/contrib/ofed/libibverbs/examples/ud_pingpong.c Wed Jul 15 13:17:16 2020 (r363220) +++ head/contrib/ofed/libibverbs/examples/ud_pingpong.c Wed Jul 15 13:26:15 2020 (r363221) @@ -245,7 +245,7 @@ static struct pingpong_dest *pp_server_exch_dest(struc return NULL; } - if (listen(sockfd, 1)) { + if (listen(sockfd, 1) < 0) { perror("listen() failed"); close(sockfd); return NULL; Modified: head/contrib/ofed/libibverbs/examples/xsrq_pingpong.c ============================================================================== --- head/contrib/ofed/libibverbs/examples/xsrq_pingpong.c Wed Jul 15 13:17:16 2020 (r363220) +++ head/contrib/ofed/libibverbs/examples/xsrq_pingpong.c Wed Jul 15 13:26:15 2020 (r363221) @@ -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;