summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/setmode.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-10-22 14:37:11 +0000
committerphk <phk@FreeBSD.org>1995-10-22 14:37:11 +0000
commit5e221828f83731c9f6083e6ce9703c1251dba05a (patch)
tree021e4f00408640702c262fd5f8dc2c167a2c2c73 /lib/libc/gen/setmode.c
parent6a09eeb50d1e12bcfae0a9e782727c535dc609f5 (diff)
downloadFreeBSD-src-5e221828f83731c9f6083e6ce9703c1251dba05a.zip
FreeBSD-src-5e221828f83731c9f6083e6ce9703c1251dba05a.tar.gz
Minor cleanup, mostly unused vars and missing #includes.
Diffstat (limited to 'lib/libc/gen/setmode.c')
-rw-r--r--lib/libc/gen/setmode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/setmode.c b/lib/libc/gen/setmode.c
index 2190b4e..c69d775 100644
--- a/lib/libc/gen/setmode.c
+++ b/lib/libc/gen/setmode.c
@@ -67,7 +67,7 @@ typedef struct bitcmd {
#define CMD2_UBITS 0x10
static BITCMD *addcmd __P((BITCMD *, int, int, int, u_int));
-static int compress_mode __P((BITCMD *));
+static void compress_mode __P((BITCMD *));
#ifdef SETMODE_DEBUG
static void dumpmode __P((BITCMD *));
#endif
@@ -172,7 +172,7 @@ setmode(p)
BITCMD *set, *saveset, *endset;
sigset_t sigset, sigoset;
mode_t mask;
- int equalopdone, permXbits, setlen;
+ int equalopdone=0, permXbits, setlen;
if (!*p)
return (NULL);
@@ -402,7 +402,7 @@ dumpmode(set)
* 'g' and 'o' commands continue to be separate. They could probably be
* compacted, but it's not worth the effort.
*/
-static int
+static void
compress_mode(set)
register BITCMD *set;
{
OpenPOWER on IntegriCloud