summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-06 22:25:50 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-03-07 12:46:13 +0100
commit008648a034755d30900cce1ec04fba9ea18381c5 (patch)
tree365385327c9aeb08067cf2347e441b2ea287767a /source3/smbd
parent0eaf91ffb8138a6faee7c5cc446b8e348d76cd2d (diff)
downloadsamba-008648a034755d30900cce1ec04fba9ea18381c5.tar.gz
samba-008648a034755d30900cce1ec04fba9ea18381c5.tar.bz2
samba-008648a034755d30900cce1ec04fba9ea18381c5.zip
s3-smbd make change_to_user_by_session static
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/proto.h2
-rw-r--r--source3/smbd/uid.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 7321ca698f..e97a85d589 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -1092,8 +1092,6 @@ void reply_transs2(struct smb_request *req);
bool change_to_guest(void);
bool change_to_user(connection_struct *conn, uint16 vuid);
-bool change_to_user_by_session(connection_struct *conn,
- const struct auth_session_info *session_info);
bool change_to_root_user(void);
bool smbd_change_to_root_user(void);
bool become_authenticated_pipe_user(struct auth_session_info *session_info);
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 84cb61cd14..abafd36912 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -314,8 +314,8 @@ bool change_to_user(connection_struct *conn, uint16_t vuid)
return change_to_user_internal(conn, session_info, vuid);
}
-bool change_to_user_by_session(connection_struct *conn,
- const struct auth_session_info *session_info)
+static bool change_to_user_by_session(connection_struct *conn,
+ const struct auth_session_info *session_info)
{
SMB_ASSERT(conn != NULL);
SMB_ASSERT(session_info != NULL);