loplugin:cstylecast (MACOSX)
Change-Id: I9d798beba649a946446893063386a8e521455a48
This commit is contained in:
parent
49f26037fa
commit
cac3f3e48e
2 changed files with 4 additions and 4 deletions
|
@ -50,9 +50,9 @@ oslProcessError SAL_CALL bootstrap_getExecutableFile(rtl_uString ** ppFileURL)
|
|||
oslProcessError result = osl_Process_E_NotFound;
|
||||
|
||||
char buffer[PATH_MAX];
|
||||
size_t buflen = sizeof(buffer);
|
||||
uint32_t buflen = sizeof(buffer);
|
||||
|
||||
if (_NSGetExecutablePath (buffer, (uint32_t*)&buflen) == 0)
|
||||
if (_NSGetExecutablePath (buffer, &buflen) == 0)
|
||||
{
|
||||
/* Determine absolute path. */
|
||||
char abspath[PATH_MAX];
|
||||
|
|
|
@ -97,7 +97,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result,
|
|||
result->h_name = buffer;
|
||||
buffer += nname;
|
||||
|
||||
parray = (char**)buffer;
|
||||
parray = reinterpret_cast<char**>(buffer);
|
||||
result->h_aliases = parray;
|
||||
data = buffer + (naliases+1)*sizeof(char*);
|
||||
for ( p = res->h_aliases; *p != NULL; p++) {
|
||||
|
@ -108,7 +108,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result,
|
|||
}
|
||||
*parray = NULL;
|
||||
buffer = data;
|
||||
parray = (char**)buffer;
|
||||
parray = reinterpret_cast<char**>(buffer);
|
||||
result->h_addr_list = parray;
|
||||
data = buffer + (naddr_list+1)*sizeof(char*);
|
||||
for ( p = res->h_addr_list; *p != NULL; p++) {
|
||||
|
|
Loading…
Reference in a new issue