Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Use C89 function definitions for the inlines.
details: https://anonhg.NetBSD.org/src/rev/5fe3bb62c3f8
branches: trunk
changeset: 778277:5fe3bb62c3f8
user: matt <matt%NetBSD.org@localhost>
date: Wed Mar 21 05:42:26 2012 +0000
description:
Use C89 function definitions for the inlines.
diffstat:
sys/sys/timepps.h | 35 ++++++++++-------------------------
1 files changed, 10 insertions(+), 25 deletions(-)
diffs (86 lines):
diff -r 321e33298144 -r 5fe3bb62c3f8 sys/sys/timepps.h
--- a/sys/sys/timepps.h Wed Mar 21 05:39:21 2012 +0000
+++ b/sys/sys/timepps.h Wed Mar 21 05:42:26 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: timepps.h,v 1.19 2009/06/14 13:16:32 kardel Exp $ */
+/* $NetBSD: timepps.h,v 1.20 2012/03/21 05:42:26 matt Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone
@@ -177,9 +177,7 @@
const int);
static __inline int
-time_pps_create(filedes, handle)
- int filedes;
- pps_handle_t *handle;
+time_pps_create(int filedes, pps_handle_t *handle)
{
*handle = filedes;
@@ -187,57 +185,44 @@
}
static __inline int
-time_pps_destroy(handle)
- pps_handle_t handle;
+time_pps_destroy(pps_handle_t handle)
{
return (0);
}
static __inline int
-time_pps_setparams(handle, ppsparams)
- pps_handle_t handle;
- const pps_params_t *ppsparams;
+time_pps_setparams(pps_handle_t handle, const pps_params_t *ppsparams)
{
return (ioctl(handle, PPS_IOC_SETPARAMS, __UNCONST(ppsparams)));
}
static __inline int
-time_pps_getparams(handle, ppsparams)
- pps_handle_t handle;
- pps_params_t *ppsparams;
+time_pps_getparams(pps_handle_t handle, pps_params_t *ppsparams)
{
return (ioctl(handle, PPS_IOC_GETPARAMS, ppsparams));
}
static __inline int
-time_pps_getcap(handle, mode)
- pps_handle_t handle;
- int *mode;
+time_pps_getcap(pps_handle_t handle, int *mode)
{
return (ioctl(handle, PPS_IOC_GETCAP, mode));
}
static __inline int
-time_pps_fetch(handle, tsformat, ppsinfobuf, timeout)
- pps_handle_t handle;
- const int tsformat;
- pps_info_t *ppsinfobuf;
- const struct timespec *timeout;
+time_pps_fetch(pps_handle_t handle, const int tsformat, pps_info_t *ppsinfobuf,
+ const struct timespec *timeout)
{
return (ioctl(handle, PPS_IOC_FETCH, ppsinfobuf));
}
static __inline int
-time_pps_kcbind(handle, kernel_consumer, edge, tsformat)
- pps_handle_t handle;
- const int kernel_consumer;
- const int edge;
- const int tsformat;
+time_pps_kcbind(pps_handle_t handle, const int kernel_consumer, const int edge,
+ const int tsformat)
{
if (tsformat != PPS_TSFMT_TSPEC) {
Home |
Main Index |
Thread Index |
Old Index