Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add __UNCONST.



details:   https://anonhg.NetBSD.org/src/rev/124d1fb048fc
branches:  trunk
changeset: 583052:124d1fb048fc
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 16 21:59:12 2005 +0000

description:
Add __UNCONST.

diffstat:

 sys/sys/timepps.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1e55538d7949 -r 124d1fb048fc sys/sys/timepps.h
--- a/sys/sys/timepps.h Sat Jul 16 19:54:00 2005 +0000
+++ b/sys/sys/timepps.h Sat Jul 16 21:59:12 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timepps.h,v 1.8 2005/02/26 22:25:34 perry Exp $        */
+/*     $NetBSD: timepps.h,v 1.9 2005/07/16 21:59:12 christos Exp $     */
 
 /*
  * Copyright (c) 1998 Jonathan Stone
@@ -170,7 +170,7 @@
        pps_handle_t handle;
        const pps_params_t *ppsparams;
 {
-       return (ioctl(handle, PPS_IOC_SETPARAMS, ppsparams));
+       return (ioctl(handle, PPS_IOC_SETPARAMS, __UNCONST(ppsparams)));
 }
 
 static __inline int
@@ -206,7 +206,7 @@
        const int edge;
        const int tsformat;
 {
-       return (ioctl(handle, PPS_IOC_KCBIND, &edge));
+       return (ioctl(handle, PPS_IOC_KCBIND, __UNCONST(&edge)));
 }
 #endif /* !_KERNEL*/
 



Home | Main Index | Thread Index | Old Index