From ccaf82a249d988a9192034b5afa33b754aefd379 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 4 Sep 2009 21:08:05 +0000 Subject: Bug 224588: Unify ($^O =~ /MSWin/) checks (always use ON_WINDOWS) Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla/Constants.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Bugzilla/Constants.pm') diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index ef3853788..5691df900 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -430,13 +430,13 @@ use constant DB_MODULE => { name => 'Oracle'}, }; -# The user who should be considered "root" when we're giving -# instructions to Bugzilla administrators. -use constant ROOT_USER => $^O =~ /MSWin32/i ? 'Administrator' : 'root'; - # True if we're on Win32. use constant ON_WINDOWS => ($^O =~ /MSWin32/i); +# The user who should be considered "root" when we're giving +# instructions to Bugzilla administrators. +use constant ROOT_USER => ON_WINDOWS ? 'Administrator' : 'root'; + use constant MIN_SMALLINT => -32768; use constant MAX_SMALLINT => 32767; -- cgit v1.2.3-24-g4f1b