summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-20 14:01:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-21 09:14:14 +0100
commit6333dcf6f18c5d5a03e5daa267f89c06a528b698 (patch)
treee5d5246bd595e0a647b6cac436aba5d4f4351259 /sal/osl
parent07f24df0e8dbc035f2f9a24c12879848a1f318f1 (diff)
loplugin:indentation (macOS)
* Some .m/.mm files that still contained tabs instead of spaces have been cleaned up with Emacs' untabify (and apple_remote/source/HIDRemoteControlDevice.m needed further manual adaptions): apple_remote/source/GlobalKeyboardDevice.m apple_remote/source/HIDRemoteControlDevice.m apple_remote/source/KeyspanFrontRowControl.m apple_remote/source/RemoteControl.m vcl/osx/a11yrolehelper.mm * Some of the changes predate 0626e66d761de18f62e4d00d427903032da9d517 "Avoid loplugin:indentation after preproc conditional inclusion lines" and would likely have no longer been flagged since. Change-Id: Ibf5faffa743c7f79b36109d9879eb79d63c8c40f Reviewed-on: https://gerrit.libreoffice.org/68090 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/system.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sal/osl/unx/system.cxx b/sal/osl/unx/system.cxx
index 2abbc24c0bd4..2d58555b8307 100644
--- a/sal/osl/unx/system.cxx
+++ b/sal/osl/unx/system.cxx
@@ -63,12 +63,12 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result,
* NULL
* addr1addr2addr3...addrn
*/
- struct hostent* res;
+ struct hostent* res;
- RTL_MUTEX_LOCK
+ RTL_MUTEX_LOCK
- if ( (res = gethostbyname(name)) )
- {
+ if ( (res = gethostbyname(name)) )
+ {
int nname, naliases, naddr_list, naliasesdata;
char **p, **parray, *data;
@@ -98,7 +98,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result,
memcpy(result, res, sizeof(struct hostent));
strcpy(buffer, res->h_name);
- result->h_name = buffer;
+ result->h_name = buffer;
buffer += nname;
parray = reinterpret_cast<char**>(buffer);
@@ -122,7 +122,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result,
}
*parray = nullptr;
- res = result;
+ res = result;
}
else
{