Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Put pri_t back to an int. It looks like there might...



details:   https://anonhg.NetBSD.org/src/rev/78de2800b35f
branches:  trunk
changeset: 744268:78de2800b35f
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Jan 28 16:40:27 2020 +0000

description:
Put pri_t back to an int.  It looks like there might be a sign extension
issue somewhere but it's not worth the hassle trying to find it.

diffstat:

 sys/sys/lwp.h   |  4 ++--
 sys/sys/types.h |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r a0213b703d46 -r 78de2800b35f sys/sys/lwp.h
--- a/sys/sys/lwp.h     Tue Jan 28 16:35:39 2020 +0000
+++ b/sys/sys/lwp.h     Tue Jan 28 16:40:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lwp.h,v 1.198 2020/01/25 15:41:52 ad Exp $     */
+/*     $NetBSD: lwp.h,v 1.199 2020/01/28 16:40:27 ad Exp $     */
 
 /*
  * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2010, 2019, 2020
@@ -103,7 +103,7 @@
        int             l_biglocks;     /* l: biglock count before sleep */
        short           l_stat;         /* l: overall LWP status */
        short           l_class;        /* l: scheduling class */
-       short           l_kpriority;    /* !: has kernel priority boost */
+       int             l_kpriority;    /* !: has kernel priority boost */
        pri_t           l_kpribase;     /* !: kernel priority base level */
        pri_t           l_priority;     /* l: scheduler priority */
        pri_t           l_inheritedprio;/* l: inherited priority */
diff -r a0213b703d46 -r 78de2800b35f sys/sys/types.h
--- a/sys/sys/types.h   Tue Jan 28 16:35:39 2020 +0000
+++ b/sys/sys/types.h   Tue Jan 28 16:40:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.103 2020/01/12 21:40:44 ad Exp $   */
+/*     $NetBSD: types.h,v 1.104 2020/01/28 16:40:27 ad Exp $   */
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -317,7 +317,7 @@
 
 typedef struct kauth_cred *kauth_cred_t;
 
-typedef short pri_t;
+typedef int pri_t;
 
 #endif
 



Home | Main Index | Thread Index | Old Index