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 {
void extendApplicationEnvironment() {
#if defined UNX
// Try to set RLIMIT_NOFILE as large as possible (failure is harmless):
rlimit l;
if (getrlimit(RLIMIT_NOFILE, &l) == 0) {
l.rlim_cur = l.rlim_max;
setrlimit(RLIMIT_NOFILE, &l);
rlimit lim;
if (getrlimit(RLIMIT_NOFILE, &lim) == 0) {
lim.rlim_cur = lim.rlim_max;
setrlimit(RLIMIT_NOFILE, &lim);
}
#endif
......@@ -68,9 +68,9 @@ void extendApplicationEnvironment() {
if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
abort();
}
sal_Int32 i = uri.lastIndexOf('/');
if (i >= 0) {
uri = uri.copy(0, i + 1);
sal_Int32 lastDirSeperatorPos = uri.lastIndexOf('/');
if (lastDirSeperatorPos >= 0) {
uri = uri.copy(0, lastDirSeperatorPos + 1);
}
env.append(rtl::Bootstrap::encode(uri));
#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