Kaydet (Commit) 10d14a94 authored tarafından Chris Sherlock's avatar Chris Sherlock

tools: make some variable names more clear

Change-Id: I5eb2428f4c71e5aa9bfc0bf71c06d87be039ad3b
üst d6bf76aa
...@@ -46,10 +46,10 @@ namespace tools { ...@@ -46,10 +46,10 @@ namespace tools {
void extendApplicationEnvironment() { void extendApplicationEnvironment() {
#if defined UNX #if defined UNX
// Try to set RLIMIT_NOFILE as large as possible (failure is harmless): // Try to set RLIMIT_NOFILE as large as possible (failure is harmless):
rlimit l; rlimit lim;
if (getrlimit(RLIMIT_NOFILE, &l) == 0) { if (getrlimit(RLIMIT_NOFILE, &lim) == 0) {
l.rlim_cur = l.rlim_max; lim.rlim_cur = lim.rlim_max;
setrlimit(RLIMIT_NOFILE, &l); setrlimit(RLIMIT_NOFILE, &lim);
} }
#endif #endif
...@@ -68,9 +68,9 @@ void extendApplicationEnvironment() { ...@@ -68,9 +68,9 @@ void extendApplicationEnvironment() {
if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) { if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
abort(); abort();
} }
sal_Int32 i = uri.lastIndexOf('/'); sal_Int32 lastDirSeperatorPos = uri.lastIndexOf('/');
if (i >= 0) { if (lastDirSeperatorPos >= 0) {
uri = uri.copy(0, i + 1); uri = uri.copy(0, lastDirSeperatorPos + 1);
} }
env.append(rtl::Bootstrap::encode(uri)); env.append(rtl::Bootstrap::encode(uri));
#if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE #if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment