]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use ioctl_handler_t typedef in Hurd ioctl macros.
authorCarl Fredrik Hammar <hammy.lite@gmail.com>
Wed, 17 Feb 2010 19:04:30 +0000 (11:04 -0800)
committerRoland McGrath <roland@redhat.com>
Wed, 17 Feb 2010 19:04:30 +0000 (11:04 -0800)
ChangeLog
hurd/hurd/ioctl.h

index 1595a0a55e2a481d25063beafda3d90000ff81a7..5c5144b6fc86bd182b8f75ec88a1719fe979889e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
+
+       * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
+       `ioctl_handler_t'.
+
 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
index ee156f02f955ab3bf52be76bb9147e1d6ab67c3c..e5ab3dc965e5edcef3fa0861cd35585fe5c551e4 100644 (file)
@@ -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)                             \