[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
- [hurd] branch upstream updated (3085332 -> f351440), Samuel Thibault, 2013/09/24
- [hurd] 02/36: daemons: make sure / is writable before setting up pflocal, Samuel Thibault, 2013/09/24
- [hurd] 03/36: sutils: set up /dev/null using /bin/nullpriv in MAKEDEV.sh, Samuel Thibault, 2013/09/24
- [hurd] 01/36: Fix cursor size, Samuel Thibault, 2013/09/24
- [hurd] 04/36: hurd: add _reply suffix to the routines in process_reply.defs, Samuel Thibault, 2013/09/24
- [hurd] 05/36: hurd: add _reply suffix to the routines in fsys_reply.defs, Samuel Thibault, 2013/09/24
- [hurd] 06/36: Fix gcc warning,
Samuel Thibault <=
- [hurd] 10/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 09/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 20/36: Properly return error, Samuel Thibault, 2013/09/24
- [hurd] 19/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 15/36: Fix setting modem control lines, Samuel Thibault, 2013/09/24
- [hurd] 22/36: Rename SOCK_* into PFLOCAL_SOCK_*, Samuel Thibault, 2013/09/24
- [hurd] 13/36: Fix S_tioctl_tiocsetd returning errors, Samuel Thibault, 2013/09/24
- [hurd] 11/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 14/36: Fix gcc warning, Samuel Thibault, 2013/09/24
- [hurd] 25/36: Fix gcc warning, Samuel Thibault, 2013/09/24