From cb5436bcc3b55e0c221fb6b3fa3133f149a64384 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 11 Oct 2007 15:36:13 -0700 Subject: Add const to the get_peer_addr() and get_socket_addr() calls. Use the IPv6 varient for get_peer_addr(). Jeremy. (This used to be commit baf1f52e34ae2465a7a34be1065da29ed97e7bea) --- source3/smbd/session.c | 2 +- source3/smbd/sesssetup.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/session.c b/source3/smbd/session.c index 8dd321fad7..54d2ddf721 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -65,7 +65,7 @@ BOOL session_claim(user_struct *vuser) struct sessionid sessionid; struct server_id pid = procid_self(); fstring keystr; - char * hostname; + const char * hostname; struct db_context *ctx; struct db_record *rec; NTSTATUS status; diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 20021ec7f7..a2f24c66d2 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -1314,7 +1314,8 @@ static void setup_new_vc_session(void) invalidate_all_vuids(); #endif if (lp_reset_on_zero_vc()) { - connections_forall(shutdown_other_smbds, client_addr()); + connections_forall(shutdown_other_smbds, + CONST_DISCARD(void *,client_addr())); } } -- cgit