From c85a4c9ba4a7de65a7850f6f9708df66bd24deea Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 21 Nov 2009 19:57:41 +0100 Subject: s3: Move the global variable Protocol to struct smbd_server_connection --- source3/include/proto.h | 4 ++-- source3/include/smb.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index b28e5f51e4..8cf4769d06 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1075,8 +1075,8 @@ struct passwd *Get_Pwnam_alloc(TALLOC_CTX *mem_ctx, const char *user); /* The following definitions come from lib/util.c */ -enum protocol_types get_Protocol(void); -void set_Protocol(enum protocol_types p); +enum protocol_types get_Protocol(const struct smbd_server_connection *c); +void set_Protocol(struct smbd_server_connection *c, enum protocol_types p); bool all_zero(const uint8_t *ptr, size_t size); bool set_global_myname(const char *myname); const char *global_myname(void); diff --git a/source3/include/smb.h b/source3/include/smb.h index a3acb7c415..94d2aa2570 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -652,6 +652,7 @@ struct smb_request { size_t unread_bytes; bool encrypted; connection_struct *conn; + struct smbd_server_connection *sconn; struct smb_perfcount_data pcd; /* -- cgit