diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-13 11:53:33 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-13 11:53:33 -0800 |
commit | fe021a25285e3438b97355d1e7270190cf91646f (patch) | |
tree | 36b3f9837957ede047729afb53b1b2a77187fdcc | |
parent | 5a273c9fab6a4fe3ab0c729e78f3a86d3e5a69ed (diff) |
Use mode_t, not int, for umask return/argument value
Fixes clang warnings:
auth.c:144:22: warning: implicit conversion changes signedness: 'mode_t' (aka 'unsigned int') to 'int' [-Wsign-conversion]
original_umask = umask (0077); /* disallow non-owner access */
~ ^~~~~~~~~~~~
auth.c:214:12: warning: implicit conversion changes signedness: 'int' to 'mode_t' (aka 'unsigned int') [-Wsign-conversion]
umask (original_umask);
~~~~~ ^~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -134,7 +134,7 @@ SetAuthentication(int count, IceListenObj *listenObjs, FILE *addfp = NULL; FILE *removefp = NULL; const char *path; - int original_umask; + mode_t original_umask; char command[256]; int i; #ifdef HAVE_MKSTEMP |