summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-13 11:53:33 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-13 11:53:33 -0800
commitfe021a25285e3438b97355d1e7270190cf91646f (patch)
tree36b3f9837957ede047729afb53b1b2a77187fdcc
parent5a273c9fab6a4fe3ab0c729e78f3a86d3e5a69ed (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth.c b/auth.c
index 398e37c..5b3bcac 100644
--- a/auth.c
+++ b/auth.c
@@ -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