Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2021 15:41:29 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9e33e2c5ce94 - stable/13 - posix timers: Declare unexported functions as static
Message-ID:  <202103151541.12FFfTDl006557@gitrepo.freebsd.org>

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

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

commit 9e33e2c5ce94d169c9b10393243782d56c94c4c7
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-03-08 17:39:06 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-03-15 15:38:17 +0000

    posix timers: Declare unexported functions as static
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 8ff2b41c05a8f98e30250b929e9722f714f1f319)
---
 sys/kern/kern_time.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index 6222bdc39bee..1d5bd2343153 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -107,8 +107,8 @@ static void	realtimer_clocktime(clockid_t, struct timespec *);
 static void	realtimer_expire(void *);
 
 static int	register_posix_clock(int, const struct kclock *);
-void		itimer_fire(struct itimer *it);
-int		itimespecfix(struct timespec *ts);
+static void	itimer_fire(struct itimer *it);
+static int	itimespecfix(struct timespec *ts);
 
 #define CLOCK_CALL(clock, call, arglist)		\
 	((*posix_clocks[clock].call) arglist)
@@ -1592,7 +1592,7 @@ itimer_accept(struct proc *p, int timerid, ksiginfo_t *ksi)
 	return (EINVAL);
 }
 
-int
+static int
 itimespecfix(struct timespec *ts)
 {
 
@@ -1653,7 +1653,7 @@ realtimer_expire(void *arg)
 	}
 }
 
-void
+static void
 itimer_fire(struct itimer *it)
 {
 	struct proc *p = it->it_proc;



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