From ede02a9fa6454d7462901f9997de1f9bef071379 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 6 Mar 2016 22:09:18 -0800 Subject: 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 --- sysif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3