From: Automatic source maintenance Date: Mon, 19 Nov 2012 01:22:14 +0000 (-0700) Subject: SourceFormat Enforcement X-Git-Tag: SQUID_3_4_0_1~481 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6595704b6907ae45b1d9a6db7872f80155a214a9;p=thirdparty%2Fsquid.git SourceFormat Enforcement --- diff --git a/src/icmp/pinger.cc b/src/icmp/pinger.cc index c5f7eaa5f3..faed28fa3c 100644 --- a/src/icmp/pinger.cc +++ b/src/icmp/pinger.cc @@ -183,7 +183,7 @@ main(int argc, char *argv[]) debugs(42, DBG_CRITICAL, "FATAL: pinger: setgid(" << getgid() << ") failed: " << xstrerror()); icmp4.Close(); icmp6.Close(); - exit (1); + exit (1); } if (setuid(getuid()) < 0) { debugs(42, DBG_CRITICAL, "FATAL: pinger: setuid(" << getuid() << ") failed: " << xstrerror()); diff --git a/src/tools.cc b/src/tools.cc index 806891025b..b6c27dbf72 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -706,7 +706,7 @@ enter_suid(void) debugs(21, 3, "enter_suid: PID " << getpid() << " taking root privileges"); #if HAVE_SETRESUID if (setresuid((uid_t)-1, 0, (uid_t)-1) < 0) - debugs (21, 3, "enter_suid: setresuid failed: " << xstrerror ()); + debugs (21, 3, "enter_suid: setresuid failed: " << xstrerror ()); #else setuid(0); @@ -732,7 +732,7 @@ no_suid(void) debugs(21, 3, "no_suid: PID " << getpid() << " giving up root priveleges forever"); if (setuid(0) < 0) - debugs(50, DBG_IMPORTANT, "WARNING: no_suid: setuid(0): " << xstrerror()); + debugs(50, DBG_IMPORTANT, "WARNING: no_suid: setuid(0): " << xstrerror()); if (setuid(uid) < 0) debugs(50, DBG_IMPORTANT, "ERROR: no_suid: setuid(" << uid << "): " << xstrerror());