From 0ba43ee47371b9529672e1663036d906c837348e Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Mon, 9 Nov 2009 01:37:50 +0100 Subject: [PATCH] Renames a variable in xorg.js to avoid conflicting with built-in type "char". Signed-off-by: Vincent Zanotti --- htdocs/javascript/xorg.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.1.4