diff options
author | mkanat%bugzilla.org <> | 2009-09-04 23:08:05 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-09-04 23:08:05 +0200 |
commit | ccaf82a249d988a9192034b5afa33b754aefd379 (patch) | |
tree | dba9420d26b014b5afe4e59f3a6010ca93b11152 /Bugzilla/Constants.pm | |
parent | 120fc1b9be07ee44c98a9ec2c5c64568e9ebccbd (diff) | |
download | bugzilla-ccaf82a249d988a9192034b5afa33b754aefd379.tar.gz bugzilla-ccaf82a249d988a9192034b5afa33b754aefd379.tar.xz |
Bug 224588: Unify ($^O =~ /MSWin/) checks (always use ON_WINDOWS)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 8 |
1 files changed, 4 insertions, 4 deletions
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; |