diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-19 01:58:05 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-19 01:58:05 +0000 |
commit | 13b7efb9086b0f0dddc7c77fd57f6f4e0b8c2bfe (patch) | |
tree | 73cbc9290ed5d928bce36511cfe4cf3203ad4fd1 /bin/ksh/c_sh.c | |
parent | 4096c5fd0c73a5ad65e52c940556227443e6eba7 (diff) |
umask returns mode_t, not int
Diffstat (limited to 'bin/ksh/c_sh.c')
-rw-r--r-- | bin/ksh/c_sh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/c_sh.c b/bin/ksh/c_sh.c index 331f8f38f3c..8f20fa51a2d 100644 --- a/bin/ksh/c_sh.c +++ b/bin/ksh/c_sh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: c_sh.c,v 1.21 2004/12/18 22:35:41 millert Exp $ */ +/* $OpenBSD: c_sh.c,v 1.22 2004/12/19 01:58:04 millert Exp $ */ /* * built-in Bourne commands @@ -58,7 +58,7 @@ c_umask(wp) int i; char *cp; int symbolic = 0; - int old_umask; + mode_t old_umask; int optc; while ((optc = ksh_getopt(wp, &builtin_opt, "S")) != EOF) @@ -92,7 +92,7 @@ c_umask(wp) } else shprintf("%#3.3o\n", old_umask); } else { - int new_umask; + mode_t new_umask; if (digit(*cp)) { for (new_umask = 0; *cp >= '0' && *cp <= '7'; cp++) |