diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-12 23:16:36 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-12 23:16:36 +0000 |
commit | bf6d072124a960d3b84ae39cd15c5aeca2e41c88 (patch) | |
tree | c082150f61e67d929b1baca2f5c6104fe959ccac /src/daemontools-extras/s6-envuidgid.c | |
parent | 81c7a02ec870ef3dba9f8b8f8dbecbd119e5ea47 (diff) | |
download | s6-bf6d072124a960d3b84ae39cd15c5aeca2e41c88.tar.xz |
Types fix, first pass
Diffstat (limited to 'src/daemontools-extras/s6-envuidgid.c')
-rw-r--r-- | src/daemontools-extras/s6-envuidgid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daemontools-extras/s6-envuidgid.c b/src/daemontools-extras/s6-envuidgid.c index 57c178f..365a862 100644 --- a/src/daemontools-extras/s6-envuidgid.c +++ b/src/daemontools-extras/s6-envuidgid.c @@ -16,9 +16,9 @@ #define USAGE "s6-envuidgid [ -i | -D defaultuid:defaultgid ] [ -u | -g | -B ] [ -n ] account prog..." #define dieusage() strerr_dieusage(100, USAGE) -static inline unsigned int scan_defaults (char const *s, uint64 *uid, gid_t *gid, unsigned int *n, gid_t *tab) +static inline size_t scan_defaults (char const *s, uint64 *uid, gid_t *gid, unsigned int *n, gid_t *tab) { - unsigned int pos = uint64_scan(s, uid) ; + size_t pos = uint64_scan(s, uid) ; if (!pos) { if (*s != ':') return 0 ; @@ -94,7 +94,7 @@ int main (int argc, char *const *argv, char const *const *envp) break ; case 3 : /* both */ { - unsigned int pos = str_chr(argv[0], ':') ; + size_t pos = str_chr(argv[0], ':') ; user = argv[0] ; if (argv[0][pos]) { @@ -136,7 +136,7 @@ int main (int argc, char *const *argv, char const *const *envp) } { - unsigned int pos = 0 ; + size_t pos = 0 ; char fmt[19 + UINT64_FMT + (NGROUPS_MAX+1) * GID_FMT] ; if (what & 1) { |