summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/async_smb.h7
-rw-r--r--source3/libsmb/smbsock_connect.c12
2 files changed, 6 insertions, 13 deletions
diff --git a/source3/include/async_smb.h b/source3/include/async_smb.h
index b8e2a34cbf..482c7ebc6c 100644
--- a/source3/include/async_smb.h
+++ b/source3/include/async_smb.h
@@ -51,11 +51,4 @@ NTSTATUS cli_smb_recv(struct tevent_req *req,
uint8_t min_wct, uint8_t *pwct, uint16_t **pvwv,
uint32_t *pnum_bytes, uint8_t **pbytes);
-struct tevent_req *cli_session_request_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- int sock,
- const struct nmb_name *called,
- const struct nmb_name *calling);
-bool cli_session_request_recv(struct tevent_req *req, int *err, uint8_t *resp);
-
#endif
diff --git a/source3/libsmb/smbsock_connect.c b/source3/libsmb/smbsock_connect.c
index 1c9db84738..1bb076eee6 100644
--- a/source3/libsmb/smbsock_connect.c
+++ b/source3/libsmb/smbsock_connect.c
@@ -37,11 +37,11 @@ struct cli_session_request_state {
static void cli_session_request_sent(struct tevent_req *subreq);
static void cli_session_request_recvd(struct tevent_req *subreq);
-struct tevent_req *cli_session_request_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- int sock,
- const struct nmb_name *called,
- const struct nmb_name *calling)
+static struct tevent_req *cli_session_request_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ int sock,
+ const struct nmb_name *called,
+ const struct nmb_name *calling)
{
struct tevent_req *req, *subreq;
struct cli_session_request_state *state;
@@ -140,7 +140,7 @@ static void cli_session_request_recvd(struct tevent_req *subreq)
tevent_req_done(req);
}
-bool cli_session_request_recv(struct tevent_req *req, int *err, uint8_t *resp)
+static bool cli_session_request_recv(struct tevent_req *req, int *err, uint8_t *resp)
{
struct cli_session_request_state *state = tevent_req_data(
req, struct cli_session_request_state);