diff options
-rw-r--r-- | lib/tsocket/tsocket.h | 4 | ||||
-rw-r--r-- | lib/tsocket/tsocket_bsd.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/tsocket/tsocket.h b/lib/tsocket/tsocket.h index 98f864e6a5..6b0eef6d79 100644 --- a/lib/tsocket/tsocket.h +++ b/lib/tsocket/tsocket.h @@ -897,12 +897,12 @@ struct sockaddr; * @return 0 on success, -1 on error with errno set. */ int tsocket_address_bsd_from_sockaddr(TALLOC_CTX *mem_ctx, - struct sockaddr *sa, + const struct sockaddr *sa, size_t sa_socklen, struct tsocket_address **addr); #else int _tsocket_address_bsd_from_sockaddr(TALLOC_CTX *mem_ctx, - struct sockaddr *sa, + const struct sockaddr *sa, size_t sa_socklen, struct tsocket_address **_addr, const char *location); diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c index 89e5f4cee8..4417f8e045 100644 --- a/lib/tsocket/tsocket_bsd.c +++ b/lib/tsocket/tsocket_bsd.c @@ -209,7 +209,7 @@ struct tsocket_address_bsd { }; int _tsocket_address_bsd_from_sockaddr(TALLOC_CTX *mem_ctx, - struct sockaddr *sa, + const struct sockaddr *sa, size_t sa_socklen, struct tsocket_address **_addr, const char *location) |