summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-07-14 14:01:18 -0700
committerAlan Coopersmith <alanc@alf.(none)>2006-07-14 14:01:18 -0700
commit1abe7027403ecf00b846c675fac27c2d86ebd9d4 (patch)
tree0efafe54eadd16fe841ab6d4b09b857bfaccc16c
parent5283b118b4bfdb1a85356147701f602b884c342b (diff)
Store return values from umask in mode_t instead of int (clear lint warnings)
-rw-r--r--auth.c4
-rw-r--r--dm.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/auth.c b/auth.c
index da0d3dd..e3a0d66 100644
--- a/auth.c
+++ b/auth.c
@@ -372,7 +372,7 @@ SaveServerAuthorizations (
int count)
{
FILE *auth_file;
- int mask;
+ mode_t mask;
int ret;
int i;
@@ -495,7 +495,7 @@ SetAuthorization (struct display *d)
static int
openFiles (char *name, char *new_name, FILE **oldp, FILE **newp)
{
- int mask;
+ mode_t mask;
strcpy (new_name, name);
strcat (new_name, "-n");
diff --git a/dm.c b/dm.c
index ddffc91..9a58cda 100644
--- a/dm.c
+++ b/dm.c
@@ -111,7 +111,8 @@ static int parent_pid = -1; /* PID of parent xdm process */
int
main (int argc, char **argv)
{
- int oldpid, oldumask;
+ int oldpid;
+ mode_t oldumask;
char cmdbuf[1024];
/* make sure at least world write access is disabled */