From: Miroslav Lichvar Date: Mon, 7 Dec 2009 11:32:28 +0000 (+0100) Subject: Fix sys_sunos compilation X-Git-Tag: 1.24-pre1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4599e2b5082638ac239df997b7412d4c84727ed3;p=thirdparty%2Fchrony.git Fix sys_sunos compilation --- diff --git a/sys_sunos.c b/sys_sunos.c index 3dccc73e..2224e0b3 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);