This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[HURD,PATCH] Cast to ioctl_handler_t instead of its definition


Hi,

This patch changes the _HURD_HANDLE_IOCTLS_1 macro to use the
ioctl_handler_t type rather then its definition, which makes it easier
to change type later on.

2010-02-17  Carl Fredrik Hammar <hammy.lite@gmail.com>

	* hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
	`ioctl_handler_t'.
---
 hurd/hurd/ioctl.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hurd/hurd/ioctl.h b/hurd/hurd/ioctl.h
index ee156f0..e5ab3dc 100644
--- a/hurd/hurd/ioctl.h
+++ b/hurd/hurd/ioctl.h
@@ -57,7 +57,7 @@ extern int hurd_register_ioctl_handler (int first_request, int last_request,
   static const struct ioctl_handler handler##_ioctl_handler##moniker	      \
   	__attribute__ ((__unused__)) =					      \
     { _IOC_NOTYPE (first), _IOC_NOTYPE (last),				      \
-	(int (*) (int, int, void *)) (handler), NULL };	      		      \
+	(ioctl_handler_t) (handler), NULL };				      \
   text_set_element (_hurd_ioctl_handler_lists,				      \
                     handler##_ioctl_handler##moniker)
 #define	_HURD_HANDLE_IOCTLS(handler, first, last)			      \
-- 
1.6.6.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]