diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-12 12:31:21 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-12 12:32:02 +0100 |
commit | 4dab9c56f90738bf772e7e771397cf40df9e49d8 (patch) | |
tree | cff5956c1adbf7fffb3810e3a8b4a66d1d5791fc /startup | |
parent | c3ce6e480ae42f2596ecdab68d78eb7a03339967 (diff) | |
download | hurd-4dab9c56f90738bf772e7e771397cf40df9e49d8.tar.gz hurd-4dab9c56f90738bf772e7e771397cf40df9e49d8.tar.bz2 hurd-4dab9c56f90738bf772e7e771397cf40df9e49d8.zip |
Fix warning
* startup/startup.c (S_io_restrict_auth): Cast const uid_t * pointer to
uid_t * when using it in struct idvec which always uses a uid_t* even
when reading it.
Diffstat (limited to 'startup')
-rw-r--r-- | startup/startup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/startup/startup.c b/startup/startup.c index 649d98ab..90192de6 100644 --- a/startup/startup.c +++ b/startup/startup.c @@ -1926,7 +1926,7 @@ S_io_restrict_auth (mach_port_t server, const uid_t *uids, size_t nuids, const uid_t *gids, size_t ngids) { - struct idvec user = { uids, (unsigned) nuids, (unsigned) nuids }; + struct idvec user = { (uid_t*) uids, (unsigned) nuids, (unsigned) nuids }; if (server != startup) return EOPNOTSUPP; |