The branch stable/15 has been updated by kib:

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

commit b72337250610eb9a26f3a1bb65959f2093e794a8
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2025-10-30 18:35:15 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2025-11-05 02:25:00 +0000

    kern/subr_syscalls.c: declare 'traced' local variables boolean
    
    (cherry picked from commit a6a9d97708ec18bf307b01141d84aabd01289159)
---
 sys/kern/subr_syscall.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys/kern/subr_syscall.c b/sys/kern/subr_syscall.c
index d5b3b62f0821..48896529f685 100644
--- a/sys/kern/subr_syscall.c
+++ b/sys/kern/subr_syscall.c
@@ -55,8 +55,8 @@ syscallenter(struct thread *td)
        struct proc *p;
        struct syscall_args *sa;
        struct sysent *se;
-       int error, traced;
-       bool sy_thr_static;
+       int error;
+       bool sy_thr_static, traced;
 
        VM_CNT_INC(v_syscall);
        p = td->td_proc;
@@ -219,7 +219,7 @@ syscallret(struct thread *td)
        struct proc *p;
        struct syscall_args *sa;
        ksiginfo_t ksi;
-       int traced;
+       bool traced;
 
        KASSERT(td->td_errno != ERELOOKUP,
            ("ERELOOKUP not consumed syscall %d", td->td_sa.code));
@@ -250,9 +250,9 @@ syscallret(struct thread *td)
        }
 #endif
 
-       traced = 0;
+       traced = false;
        if (__predict_false(p->p_flag & P_TRACED)) {
-               traced = 1;
+               traced = true;
                PROC_LOCK(p);
                td->td_dbgflags |= TDB_SCX;
                PROC_UNLOCK(p);

Reply via email to