The branch main has been updated by jhb:

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

commit 4fa1e855be60f2c95005edb295fdc36cc163ff6b
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2022-12-05 00:32:03 +0000
Commit:     John Baldwin <j...@freebsd.org>
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);
                }

Reply via email to