Renames a variable in xorg.js to avoid conflicting with built-in type "char".
authorVincent Zanotti <vincent.zanotti@m4x.org>
Mon, 9 Nov 2009 00:37:50 +0000 (01:37 +0100)
committerVincent Zanotti <vincent.zanotti@m4x.org>
Mon, 9 Nov 2009 00:37:50 +0000 (01:37 +0100)
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
htdocs/javascript/xorg.js

index 2a4a19c..5542498 100644 (file)
@@ -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;