diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-12-19 13:06:09 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-12-19 13:08:27 +0100 |
commit | f039057048f850f9b43c297258342fb3bc869a6f (patch) | |
tree | 87d0f6591d57462791c99da9dc56fe918ee00305 /sal/osl | |
parent | e5e42a69867ed720a88864dd5d5549a6f03d2ef5 (diff) |
Warning clean-up (Mac OS X).
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/system.c | 2 | ||||
-rw-r--r-- | sal/osl/unx/system.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/system.c b/sal/osl/unx/system.c index bf8607ddb18f..b74aff545b48 100644 --- a/sal/osl/unx/system.c +++ b/sal/osl/unx/system.c @@ -38,7 +38,7 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; extern int h_errno; struct hostent *gethostbyname_r(const char *name, struct hostent *result, - char *buffer, int buflen, int *h_errnop) + char *buffer, size_t buflen, int *h_errnop) { /* buffer layout: name\0 * array_of_pointer_to_aliases diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h index 71b9b31f7bf2..3c54785a0475 100644 --- a/sal/osl/unx/system.h +++ b/sal/osl/unx/system.h @@ -490,7 +490,7 @@ struct tm *gmtime_r(const time_t *timep, struct tm *buffer); #endif /* !defined FREEBSD || (__FreeBSD_version < 500112) */ #if !defined(FREEBSD) || (__FreeBSD_version < 601103) struct hostent *gethostbyname_r(const char *name, struct hostent *result, - char *buffer, int buflen, int *h_errnop); + char *buffer, size_t buflen, int *h_errnop); #endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */ #endif |