]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: fix using hurd/signal.h in C++ programs
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 27 Nov 2016 16:22:22 +0000 (17:22 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 27 Nov 2016 16:22:22 +0000 (17:22 +0100)
* hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
error_t to fix usage in C++ programs.

ChangeLog
hurd/hurd/signal.h

index ed3971b961c46ebb995e164298df23e1cb5e777e..8483b23861d4d13fc61f721b50eed53a21f05026 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
+       error_t to fix usage in C++ programs.
+
 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
 
        * scripts/build-many-glibcs.py: Import datetime module.
index 85e515293b651b574861d0a4b1a47ff1c8d2ed21..96f42d50643a9bebe218aa21fdee982454b2e1d6 100644 (file)
@@ -340,18 +340,18 @@ extern mach_msg_timeout_t _hurd_interrupted_rpc_timeout;
     do                                                                       \
       {                                                                              \
        /* Get the message port.  */                                          \
-       __err = (fetch_msgport_expr);                                         \
+       __err = (error_t) (fetch_msgport_expr);                               \
        if (__err)                                                            \
          break;                                                              \
        /* Get the reference port.  */                                        \
-       __err = (fetch_refport_expr);                                         \
+       __err = (error_t) (fetch_refport_expr);                               \
        if (__err)                                                            \
          {                                                                   \
            /* Couldn't get it; deallocate MSGPORT and fail.  */              \
            __mach_port_deallocate (__mach_task_self (), msgport);            \
            break;                                                            \
          }                                                                   \
-       __err = (rpc_expr);                                                   \
+       __err = (error_t) (rpc_expr);                                         \
        __mach_port_deallocate (__mach_task_self (), msgport);                \
        if ((dealloc_refport) && refport != MACH_PORT_NULL)                   \
          __mach_port_deallocate (__mach_task_self (), refport);              \