commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 06/36: Fix gcc warning


From: Samuel Thibault
Subject: [hurd] 06/36: Fix gcc warning
Date: Tue, 24 Sep 2013 12:31:13 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 1d8160dd75fc8f58d50fb3a60f18074a8fb96f57
Author: Samuel Thibault <address@hidden>
Date:   Sat Sep 21 12:41:46 2013 +0200

    Fix gcc warning
    
    * libtrivfs/io-restrict-auth.c (listmember): Use uid_t type instead of int.
    (trivfs_S_io_restrict_auth): Make `i` variable an unsigned int, like the 
`num`
    field it is compared with
---
 libtrivfs/io-restrict-auth.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c
index 61c0772..db3c99a 100644
--- a/libtrivfs/io-restrict-auth.c
+++ b/libtrivfs/io-restrict-auth.c
@@ -24,7 +24,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 
02139, USA.  */
 
 /* Tell if the array LIST (of size N) contains a member equal to QUERY. */
 static inline int
-listmember (int *list, int query, int n)
+listmember (const uid_t *list, uid_t query, int n)
 {
   int i;
   for (i = 0; i < n; i++)
@@ -42,7 +42,7 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred,
                           uid_t *uids, size_t nuids,
                           uid_t *gids, size_t ngids)
 {
-  int i;
+  unsigned int i;
   error_t err;
   struct trivfs_protid *newcred;
   struct idvec *uvec, *gvec;

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