summaryrefslogtreecommitdiff
path: root/xpcom
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2019-10-04 04:37:51 -0500
committerathenian200 <athenian200@outlook.com>2019-10-21 04:53:43 -0500
commit24898cd1c0f4f80c6390e9dc9164492d14e22ef4 (patch)
tree30a30c687b2d45a0c866e2d16e4974b67ffd4f61 /xpcom
parent2e908a8b2c02750f40fdcd5c9b993d881d9fd48f (diff)
downloaduxp-24898cd1c0f4f80c6390e9dc9164492d14e22ef4.tar.gz
Fix a bunch of dumb typos and omissions.
Diffstat (limited to 'xpcom')
-rw-r--r--xpcom/base/nsMemoryReporterManager.cpp2
-rw-r--r--xpcom/io/nsLocalFileUnix.cpp1
-rw-r--r--xpcom/reflect/xptcall/md/unix/moz.build2
3 files changed, 2 insertions, 3 deletions
diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp
index 9c2d620cc2..dcbad171e3 100644
--- a/xpcom/base/nsMemoryReporterManager.cpp
+++ b/xpcom/base/nsMemoryReporterManager.cpp
@@ -1151,7 +1151,7 @@ ResidentPeakDistinguishedAmount(int64_t* aN)
#ifdef XP_MACOSX
*aN = usage.ru_maxrss;
#elif defined(XP_SOLARIS)
- *aN = usage.ru.maxrss * getpagesize();
+ *aN = usage.ru_maxrss * getpagesize();
#else
*aN = usage.ru_maxrss * 1024;
#endif
diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp
index c0b5c0f482..06706235d0 100644
--- a/xpcom/io/nsLocalFileUnix.cpp
+++ b/xpcom/io/nsLocalFileUnix.cpp
@@ -1608,7 +1608,6 @@ nsLocalFile::IsExecutable(bool* aResult)
}
#endif
if (*aResult || errno == EACCES) {
- if (*aResult || errno == EACCES) {
return NS_OK;
}
return NSRESULT_FOR_ERRNO();
diff --git a/xpcom/reflect/xptcall/md/unix/moz.build b/xpcom/reflect/xptcall/md/unix/moz.build
index c5cba0c8d7..a005880284 100644
--- a/xpcom/reflect/xptcall/md/unix/moz.build
+++ b/xpcom/reflect/xptcall/md/unix/moz.build
@@ -56,7 +56,7 @@ if CONFIG['OS_ARCH'] == 'SunOS':
'xptcinvoke_x86_64_unix.cpp',
'xptcstubs_x86_64_linux.cpp'
]
- elif CONFIG['OS_TEST'] == 'x86':
+ elif '86' in CONFIG['OS_TEST']:
SOURCES += [
'xptcinvoke_gcc_x86_unix.cpp',
'xptcstubs_gcc_x86_unix.cpp'