about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 16:18:22 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 16:18:22 +0000
commit9f808a8c646f27ff3ca5b80d24534c0587fab559 (patch)
treed18436fec8c2c4ee362104d0e10971e58529e58c
parent455f02a00416373558bfbdbd22e672687c91b520 (diff)
downloads6-portable-utils-9f808a8c646f27ff3ca5b80d24534c0587fab559.tar.gz
s6-portable-utils-9f808a8c646f27ff3ca5b80d24534c0587fab559.tar.xz
s6-portable-utils-9f808a8c646f27ff3ca5b80d24534c0587fab559.zip
Declare unsigned int, not mode_t, when scanning into it: mode_t may be short
-rw-r--r--src/skaembutils/s6-dumpenv.c2
1 files changed, 1 insertions, 1 deletions
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" ;