bug-hurd
[Top][All Lists]
Advanced

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

[PATCH] Cast to ioctl_handler_t instead of its definition


From: Carl Fredrik Hammar
Subject: [PATCH] Cast to ioctl_handler_t instead of its definition
Date: Wed, 26 Aug 2009 14:17:21 +0200

* hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to `ioctl_handler_t'.
---
Hi,

This is an obvious fix to glibc that makes it easier to change
`ioctl_handler_t'.  I sent in this patch before as part of the server
provided ioctl handler patch series.  I'm resending it because I'm going
to resend the rest of the series aswell, however this time I'm sending
it stand-alone since this patch is useful in itself.

Regards,
  Fredrik
---
 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.3.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]