diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-04-08 21:15:38 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-04-08 21:15:38 +0000 |
commit | edc96e2497266ee829656e86d25b59c03c64d27c (patch) | |
tree | d70c2f8fcc72990fa73ea416f835dd12e511789d /lib/libc/gen/setmode.c | |
parent | 460f9ad102f6bef71bb187752845f22ec04699fa (diff) | |
download | FreeBSD-src-edc96e2497266ee829656e86d25b59c03c64d27c.zip FreeBSD-src-edc96e2497266ee829656e86d25b59c03c64d27c.tar.gz |
Use prototypes in the function definitions.
Diffstat (limited to 'lib/libc/gen/setmode.c')
-rw-r--r-- | lib/libc/gen/setmode.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/libc/gen/setmode.c b/lib/libc/gen/setmode.c index fd67ec6..cfeb199 100644 --- a/lib/libc/gen/setmode.c +++ b/lib/libc/gen/setmode.c @@ -83,9 +83,7 @@ static void dumpmode(BITCMD *); * bits) followed by a '+' (set bits). */ mode_t -getmode(bbox, omode) - const void *bbox; - mode_t omode; +getmode(const void *bbox, mode_t omode) { const BITCMD *set; mode_t clrval, newmode, value; @@ -172,8 +170,7 @@ common: if (set->cmd2 & CMD2_CLR) { #define STANDARD_BITS (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) void * -setmode(p) - const char *p; +setmode(const char *p) { int perm, who; char op, *ep; @@ -340,11 +337,7 @@ apply: if (!*p) } static BITCMD * -addcmd(set, op, who, oparg, mask) - BITCMD *set; - int oparg, who; - int op; - u_int mask; +addcmd(BITCMD *set, int op, int who, int oparg, u_int mask) { switch (op) { case '=': @@ -388,8 +381,7 @@ addcmd(set, op, who, oparg, mask) #ifdef SETMODE_DEBUG static void -dumpmode(set) - BITCMD *set; +dumpmode(BITCMD *set) { for (; set->cmd; ++set) (void)printf("cmd: '%c' bits %04o%s%s%s%s%s%s\n", @@ -409,8 +401,7 @@ dumpmode(set) * compacted, but it's not worth the effort. */ static void -compress_mode(set) - BITCMD *set; +compress_mode(BITCMD *set) { BITCMD *nset; int setbits, clrbits, Xbits, op; |