summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-06-11 19:36:09 +0200
committerStefan Metzmacher <metze@samba.org>2013-06-14 20:30:33 +0200
commitfffb70168d8031dc1999fab963263ac7d3a2442a (patch)
tree899d377af7c01b2607ca7b4321f763ae56e6f963
parentcf86f3e81b4e228d5f85cac283c51ca7d5e0cd16 (diff)
downloadsamba-fffb70168d8031dc1999fab963263ac7d3a2442a.tar.gz
samba-fffb70168d8031dc1999fab963263ac7d3a2442a.tar.bz2
samba-fffb70168d8031dc1999fab963263ac7d3a2442a.zip
tsocket: Add some const
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--lib/tsocket/tsocket.h4
-rw-r--r--lib/tsocket/tsocket_bsd.c2
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)