[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/7] kern: move forward declaration into a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 4/7] kern: move forward declaration into a header file |
Date: |
Sat, 23 Nov 2013 15:29:27 +0100 |
* kern/mach_clock.c (softclock): Remove forward declaration.
* kern/timer.h (softclock): Add prototype.
---
kern/mach_clock.c | 2 --
kern/timer.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index cfc94a3..844e7b3 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -64,8 +64,6 @@
#include <kern/pc_sample.h>
#endif
-void softclock(); /* forward */
-
int hz = HZ; /* number of ticks per second */
int tick = (1000000 / HZ); /* number of usec per tick */
time_value_t time = { 0, 0 }; /* time since bootup (uncorrected) */
diff --git a/kern/timer.h b/kern/timer.h
index f2154dd..f5095b5 100644
--- a/kern/timer.h
+++ b/kern/timer.h
@@ -182,4 +182,6 @@ MACRO_END
extern void init_timers(void);
+void softclock(void);
+
#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 <=
- [PATCH 5/7] kern: move forward declaration into a header file, Marin Ramesa, 2013/11/23
- [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