From: Vincent Zanotti Date: Mon, 9 Nov 2009 00:37:50 +0000 (+0100) Subject: Renames a variable in xorg.js to avoid conflicting with built-in type "char". X-Git-Tag: xorg/0.10.2~11 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0ba43ee47371b9529672e1663036d906c837348e;p=platal.git Renames a variable in xorg.js to avoid conflicting with built-in type "char". Signed-off-by: Vincent Zanotti --- diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index 2a4a19c..5542498 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -259,12 +259,12 @@ function auto_links() { // {{{ function checkPassword -function getType(char) { - if (char >= 'a' && char <= 'z') { +function getType(c) { + if (c >= 'a' && c <= 'z') { return 1; - } else if (char >= 'A' && char <= 'Z') { + } else if (c >= 'A' && c <= 'Z') { return 2; - } else if (char >= '0' && char <= '9') { + } else if (c >= '0' && c <= '9') { return 3; } else { return 4;