diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-07-14 14:01:18 -0700 |
---|---|---|
committer | Alan Coopersmith <alanc@alf.(none)> | 2006-07-14 14:01:18 -0700 |
commit | 1abe7027403ecf00b846c675fac27c2d86ebd9d4 (patch) | |
tree | 0efafe54eadd16fe841ab6d4b09b857bfaccc16c | |
parent | 5283b118b4bfdb1a85356147701f602b884c342b (diff) |
Store return values from umask in mode_t instead of int (clear lint warnings)
-rw-r--r-- | auth.c | 4 | ||||
-rw-r--r-- | dm.c | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -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"); @@ -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 */ |