commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 05/09: Fix gcc warnings


From: Samuel Thibault
Subject: [hurd] 05/09: Fix gcc warnings
Date: Tue, 24 Sep 2013 12:29:32 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch dde
in repository hurd.

commit 48a3b401d862a98b0e3e6d5672b8701340aaf29b
Author: Samuel Thibault <address@hidden>
Date:   Sat Sep 21 13:25:52 2013 +0200

    Fix gcc warnings
    
    * eth-multiplexer/device_impl.c (ds_device_write): Cast address into
    vm_address_t before passing to `vm_deallocate`.
---
 eth-multiplexer/device_impl.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eth-multiplexer/device_impl.c b/eth-multiplexer/device_impl.c
index 953fca7..459d9c4 100644
--- a/eth-multiplexer/device_impl.c
+++ b/eth-multiplexer/device_impl.c
@@ -156,7 +156,7 @@ ds_device_write (device_t device, mach_port_t reply_port,
                                                  vdev_portclass);
   if (vdev == NULL)
     {
-      vm_deallocate (mach_task_self (), data, datalen);
+      vm_deallocate (mach_task_self (), (vm_address_t) data, datalen);
       return D_NO_SUCH_DEVICE;
     }
   /* The packet is forwarded to all virtual interfaces and
@@ -168,7 +168,7 @@ ds_device_write (device_t device, mach_port_t reply_port,
                        data, datalen, bytes_written);
   /* The data in device_write() is transmifered out of line,
    * so the server-side function has to deallocate it. */
-  vm_deallocate (mach_task_self (), data, datalen);
+  vm_deallocate (mach_task_self (), (vm_address_t) data, datalen);
   ports_port_deref (vdev);
   return ret;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

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