From 9f808a8c646f27ff3ca5b80d24534c0587fab559 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 16 Jul 2017 16:18:22 +0000 Subject: Declare unsigned int, not mode_t, when scanning into it: mode_t may be short --- src/skaembutils/s6-dumpenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/skaembutils/s6-dumpenv.c') diff --git a/src/skaembutils/s6-dumpenv.c b/src/skaembutils/s6-dumpenv.c index 55028b3..26d06b8 100644 --- a/src/skaembutils/s6-dumpenv.c +++ b/src/skaembutils/s6-dumpenv.c @@ -14,7 +14,7 @@ int main (int argc, char const *const *argv, char const *const *envp) { - mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH ; + unsigned int mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH ; size_t dirlen ; PROG = "s6-dumpenv" ; -- cgit v1.2.3