summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-03-06 22:09:18 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-03-06 22:09:18 -0800
commitede02a9fa6454d7462901f9997de1f9bef071379 (patch)
treed0fd639c0000c65a095fe6cb96174a62f94da692
parente396824ed2d6514a62302c5e5591cacfbb8cd29b (diff)
downloadtxr-ede02a9fa6454d7462901f9997de1f9bef071379.tar.gz
txr-ede02a9fa6454d7462901f9997de1f9bef071379.tar.bz2
txr-ede02a9fa6454d7462901f9997de1f9bef071379.zip
Fix signed/unsigned warning from g++.
* sysif.c (repress_called, is_setuid): Change to unsigned int, so comparison with RC_MAGIC constant doesn't elicit warning
-rw-r--r--sysif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysif.c b/sysif.c
index dd5f2409..3b8341cc 100644
--- a/sysif.c
+++ b/sysif.c
@@ -874,7 +874,7 @@ static val setegid_wrap(val nval)
#define RC_MAGIC 0xbe50c001
static uid_t orig_euid, real_uid;
-static int repress_called = 0, is_setuid = 1;
+static unsigned int repress_called = 0, is_setuid = 1;
void repress_privilege(void)
{