mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
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
This commit is contained in:
parent
f0b58b1901
commit
4fa1e855be
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue