[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/7] kern: move forward declaration into a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 5/7] kern: move forward declaration into a header file |
Date: |
Sat, 23 Nov 2013 15:29:28 +0100 |
* kern/timer.c (timer_init): Remove forward declaration.
* kern/timer.h (timer_init): Add prototype.
---
kern/timer.c | 2 --
kern/timer.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kern/timer.c b/kern/timer.c
index 124227c..37d3dcb 100644
--- a/kern/timer.c
+++ b/kern/timer.c
@@ -40,8 +40,6 @@
timer_t current_timer[NCPUS];
timer_data_t kernel_timer[NCPUS];
-void timer_init(); /* forward */
-
/*
* init_timers initializes all non-thread timers and puts the
* service routine on the callout queue. All timers must be
diff --git a/kern/timer.h b/kern/timer.h
index f5095b5..76a4117 100644
--- a/kern/timer.h
+++ b/kern/timer.h
@@ -184,4 +184,6 @@ extern void init_timers(void);
void softclock(void);
+void timer_init(timer_t this_timer);
+
#endif /* _KERN_TIMER_H_ */
--
1.8.1.4
- Turning forward declarations into prototypes, Marin Ramesa, 2013/11/23
- [PATCH 1/7] vm: move forward declarations into a header file, Marin Ramesa, 2013/11/23
- [PATCH 2/7] vm: move forward declarations into a header file, Marin Ramesa, 2013/11/23
- [PATCH 3/7] kern: move forward declarations into a header file, Marin Ramesa, 2013/11/23
- [PATCH 4/7] kern: move forward declaration into a header file, Marin Ramesa, 2013/11/23
- [PATCH 5/7] kern: move forward declaration into a header file,
Marin Ramesa <=
- [PATCH 6/7] kern: move forward declaration into a header file, Marin Ramesa, 2013/11/23
- [PATCH 7/7] kern: move forward declarations into a header file, Marin Ramesa, 2013/11/23
- Re: Turning forward declarations into prototypes, Samuel Thibault, 2013/11/24