Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2023 00:29:34 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c2c7a43fb5cf - stable/13 - rpcgen: Unindent a line not guarded by if (mtflag).
Message-ID:  <202305030029.3430TYJb071893@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=c2c7a43fb5cf6f1711a94ef9e928defe6075503a

commit c2c7a43fb5cf6f1711a94ef9e928defe6075503a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-05 00:32:03 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-05-03 00:03:19 +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
    
    (cherry picked from commit 4fa1e855be60f2c95005edb295fdc36cc163ff6b)
---
 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);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305030029.3430TYJb071893>