From nobody Mon Dec 05 00:32:20 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NQPdK59v3z4k2Rd; Mon, 5 Dec 2022 00:32:21 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NQPdK30Phz3CZQ; Mon, 5 Dec 2022 00:32:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670200341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0oe/FSNJWJ3PltrfnVLYPulbfo5mKhLxYWacdcLs1aU=; b=PIywZ6UgytdViFFWUg4qwIk75HhrnYsObLPMcfPBPUqWstO0eo0k43CrBtqUJYX/gIMP8k 9R5GcpASePDTZDnkubzuXg+GEj19w/ukA7ZlhYivJn98m9BYrinuxY5Zs/1wrXijcqQM9e blOYjMvM7GcBFdLX1RYIZYubNxDV8+Rq2TvXCxiv4ai1EaxWo1YWZV+YC3BMI9jQU5fLbY WeoH5u59sNzY5qL3J4DpaKKMZa311GzvgS9tniS2AGJDaMCJt40dTb1wRZ7ta38QlOfaJM JwusGfcPhLBDJd4cC4iMoE9xFgJHpLbj94rnfAtuNkxKpGrhDOOyYZRRe8xe+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670200341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0oe/FSNJWJ3PltrfnVLYPulbfo5mKhLxYWacdcLs1aU=; b=e/2Hn97QoQB8hJhbVuJX6wuxhf58LpAxa5vlyJNHXybSR6rH9r2z4QNqRsAQlH9/JOoKAO 94qEOhQuSQI/UnTYUzlQy/TN+O70C4FA3WwPA1jfOazIYXdKUc9ZGJZzy6KcVlsrfm84KR dwhzLxkNsRxfs5ULBj23e4LA+pcTQwbBPkFYjScrilYo9MAbpw9rlw9k1Kt3JNt+Rw8a71 O+xgKWaP0zQ2WNStvLHbGQq/G5Vc7eseB2QvoukGU6N6c/cvpJTBpfE3UUTg7T6gJxywsk 56aLH5/JzBKHsrRC0Xjq5AYYOCm9+GqEOxR0tHxD4T9aw/ekU0wd5wyNSgqA+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670200341; a=rsa-sha256; cv=none; b=MlsX7Kmc96Ho/AQdLsjOQgDk3l4zh/F4+4q3aS7GfzUVLOz6AXM3XFy2vLJFzJ0zm4f4f/ /DeHBbbIkf3VOGX0DmkDNAhsaMFrs4qOjVNUZ9gcJU4pNUMgwK8ZfWelf+0aa9X4hlmtfn loaxNewDTI8cGZgqsKmQUS7hmGgYbxSehAYy0EKLGLXeAPrwBHwxbFS6LQ/1hr602YEzf7 QkU2sNgegN1dTVKBaSy1qOElk+FYIbC5vX7gpRUc5CaRShqDUnx3j2Xy3Xd4ZDbV4rjPTh AQe+srEXaO+56CEFXAQLq0Gj3Mn76a5+sJPubRI3APwt1FhRUoa9Oe+hghmKSA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NQPdJ5ptzzdgZ; Mon, 5 Dec 2022 00:32:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B50WKcw074328; Mon, 5 Dec 2022 00:32:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B50WKGH074327; Mon, 5 Dec 2022 00:32:20 GMT (envelope-from git) Date: Mon, 5 Dec 2022 00:32:20 GMT Message-Id: <202212050032.2B50WKGH074327@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 4fa1e855be60 - main - rpcgen: Unindent a line not guarded by if (mtflag). List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4fa1e855be60f2c95005edb295fdc36cc163ff6b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4fa1e855be60f2c95005edb295fdc36cc163ff6b commit 4fa1e855be60f2c95005edb295fdc36cc163ff6b Author: John Baldwin AuthorDate: 2022-12-05 00:32:03 +0000 Commit: John Baldwin CommitDate: 2022-12-05 00:32:03 +0000 rpcgen: Unindent a line not guarded by if (mtflag). mtflag is used to add pthread mutex locking around operations to make them thread-safe. Setting the state to _SERVED is not conditional on locking. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37541 --- usr.bin/rpcgen/rpc_svcout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c index 3c6d0824f11a..06951940ff4e 100644 --- a/usr.bin/rpcgen/rpc_svcout.c +++ b/usr.bin/rpcgen/rpc_svcout.c @@ -619,7 +619,7 @@ print_return(const char *space) if (timerflag) { if (mtflag) f_print(fout, "%spthread_mutex_lock(&_svcstate_lock);\n", space); - f_print(fout, "%s_rpcsvcstate = _SERVED;\n", space); + f_print(fout, "%s_rpcsvcstate = _SERVED;\n", space); if (mtflag) f_print(fout, "%spthread_mutex_unlock(&_svcstate_lock);\n", space); }