From 4599e2b5082638ac239df997b7412d4c84727ed3 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 7 Dec 2009 12:32:28 +0100 Subject: [PATCH] Fix sys_sunos compilation --- sys_sunos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_sunos.c b/sys_sunos.c index 3dccc73..2224e0b 100644 --- a/sys_sunos.c +++ b/sys_sunos.c @@ -368,7 +368,7 @@ setup_kernel(unsigned long on_off) } if (kvm_write(kt, nl[2].n_value, - (char *)(&(on_off ? default_tickadj : our_tickadj)), + (char *)(on_off ? &default_tickadj : &our_tickadj), sizeof(unsigned long)) < 0) { LOG(LOGS_ERR, LOGF_SysSunOS, "Cannot write to _tickadj"); kvm_close(kt);