summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-20 16:12:26 +0200
committerJustus Winter <justus@gnupg.org>2016-04-20 16:15:27 +0200
commitcd7e689dae440befd8d663d15fff755464709625 (patch)
tree7b9f5ca3f3eaff67e4f55b0e3f4bb579472318b1
parent8f2a4990d1bcd91f399cb519bb800afe136f102f (diff)
Fix type of program counter argument
* i386/i386/hardclock.c (hardclock): Use '0' instead of 'NULL'. * vm/vm_fault (vm_fault_cleanup): Likewise.
-rw-r--r--i386/i386/hardclock.c2
-rw-r--r--vm/vm_fault.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/hardclock.c b/i386/i386/hardclock.c
index 0ce6f381..82761ec3 100644
--- a/i386/i386/hardclock.c
+++ b/i386/i386/hardclock.c
@@ -74,7 +74,7 @@ hardclock(iunit, old_ipl, irq, ret_addr, regs)
clock_interrupt(tick, /* usec per tick */
FALSE, /* kernel mode */
FALSE, /* not SPL0 */
- NULL); /* interrupted eip */
+ 0); /* interrupted eip */
#ifdef LINUX_DEV
linux_timer_intr();
diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index e61a223d..68afc59d 100644
--- a/vm/vm_fault.c
+++ b/vm/vm_fault.c
@@ -154,7 +154,7 @@ vm_fault_cleanup(
thread_t _thread_ = current_thread(); \
\
if (_thread_ != THREAD_NULL) \
- take_pc_sample_macro(_thread_, (flavor), 1, NULL); \
+ take_pc_sample_macro(_thread_, (flavor), 1, 0); \
MACRO_END
#else