summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/shell/cmds.c')
-rw-r--r--cpukit/libmisc/shell/cmds.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/cmds.c b/cpukit/libmisc/shell/cmds.c
index 2c462007df..2461cc4901 100644
--- a/cpukit/libmisc/shell/cmds.c
+++ b/cpukit/libmisc/shell/cmds.c
@@ -27,6 +27,11 @@
#include "config.h"
#endif
+/* Since we compile with strict ANSI we need to undef it to get
+ * prototypes for extensions
+ */
+#undef __STRICT_ANSI__
+
#include <stdio.h>
#include <termios.h>
#include <string.h>
@@ -447,7 +452,7 @@ int main_umask(int argc,char *argv[])
if (argc == 2) msk=str2int(argv[1]);
umask(msk);
msk=umask(0);
- printf("0%o\n",msk);
+ printf("0%o\n", (unsigned int) msk);
umask(msk);
return 0;
}