commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 04/09: Fix gcc warnings


From: Samuel Thibault
Subject: [hurd] 04/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 b20cbbfb4e5d088db860dfdfe9f37886a6543760
Author: Samuel Thibault <address@hidden>
Date:   Sat Sep 21 13:11:56 2013 +0200

    Fix gcc warnings
    
    * eth-filter/filter.c: Include <argz.h> and <hurd/fshelp.h>
    (ds_device_write): Cast address to vm_address_t before calling
    vm_deallocate.
    (trivfs_append_args): Drop unused `err` variable.
    (trivfs_set_options): Return 0 on success.
---
 eth-filter/filter.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/eth-filter/filter.c b/eth-filter/filter.c
index 7720b0c..d2b1e39 100644
--- a/eth-filter/filter.c
+++ b/eth-filter/filter.c
@@ -26,6 +26,7 @@
  */
 
 #include <argp.h>
+#include <argz.h>
 #include <errno.h>
 #include <error.h>
 #include <stddef.h>
@@ -37,6 +38,7 @@
 #include <hurd/trivfs.h>
 #include <hurd/ports.h>
 #include <hurd/ihash.h>
+#include <hurd/fshelp.h>
 
 #include "ourdevice_S.h"
 #include "notify_S.h"
@@ -379,7 +381,7 @@ ds_device_write (device_t device, mach_port_t reply_port,
   user = ports_lookup_port (port_bucket, device, user_portclass);
   if (user == NULL)
     {
-      vm_deallocate (mach_task_self (), data, datalen);
+      vm_deallocate (mach_task_self (), (vm_address_t) data, datalen);
       return D_INVALID_OPERATION;
     }
   proxy = user->proxy;
@@ -414,7 +416,7 @@ ds_device_write (device_t device, mach_port_t reply_port,
       *bytes_written = datalen;
       err = 0;
     }
-  vm_deallocate (mach_task_self (), data, datalen);
+  vm_deallocate (mach_task_self (), (vm_address_t) data, datalen);
   return err;
 }
 
@@ -734,7 +736,6 @@ error_t
 trivfs_append_args (struct trivfs_control *fsys,
                    char **argz, size_t *argz_len)
 {
-  error_t err;
   char *opt;
 
   if (device_file)
@@ -779,6 +780,8 @@ trivfs_set_options (struct trivfs_control *fsys, char 
*argz, size_t argz_len)
                        rcv_filter_length);
   if (err)
     return err;
+
+  return 0;
 }
 
 int

-- 
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]