From fffb70168d8031dc1999fab963263ac7d3a2442a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 11 Jun 2013 19:36:09 +0200 Subject: [PATCH] tsocket: Add some const Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- lib/tsocket/tsocket.h | 4 ++-- 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 98f864e6a57..6b0eef6d799 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 89e5f4cee89..4417f8e0454 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) -- 2.11.4.GIT