Remove use of octal constants

New spidermonkey warns on octal constants, so we can't
even use them for file permissions. Switch to hex plus a comment.
This commit is contained in:
Owen W. Taylor 2010-09-30 12:41:20 -04:00
parent e22fbda689
commit 734d93087a

View File

@ -211,7 +211,7 @@ ContactManager.prototype = {
throw new Error('Could not parse connection path ' + connPath);
info.cacheDir = this._cacheDir + '/' + match[1];
GLib.mkdir_with_parents(info.cacheDir, 0700);
GLib.mkdir_with_parents(info.cacheDir, 0x1c0); // 0x1c0 = octal 0700
// info.names[handle] is @handle's real name
// info.tokens[handle] is the token for @handle's avatar