summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond@samba.org>2000-04-19 15:58:38 +0000
committerElrond <elrond@samba.org>2000-04-19 15:58:38 +0000
commit5911ea829d8ee9b0df04a85cdc60c97705bcf337 (patch)
tree75d2e3a3376a9b77e5a1fbdff15165a0f0f32641
parent4c227c96c99fea8b9eb769bb3f11166143c87258 (diff)
downloadsamba-5911ea829d8ee9b0df04a85cdc60c97705bcf337.tar.gz
samba-5911ea829d8ee9b0df04a85cdc60c97705bcf337.tar.xz
samba-5911ea829d8ee9b0df04a85cdc60c97705bcf337.zip
Made some things static, will look later, why protos from
ncacn_np_use.c end up in both proto.h and rpc_client_proto.h.
-rw-r--r--source/include/proto.h5
-rw-r--r--source/include/rpc_client_proto.h5
-rw-r--r--source/rpc_client/ncacn_np_use.c4
3 files changed, 2 insertions, 12 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index 63c221d5e76..746474d37d1 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -3125,11 +3125,6 @@ BOOL msrpc_sam_query_userinfo(const char* srv_name, const DOM_SID *sid,
/*The following definitions come from rpc_client/ncacn_np_use.c */
-BOOL ncacn_np_establish_connection(struct ncacn_np *cli,
- const char *srv_name,
- const struct ntuser_creds *ntc,
- const char *pipe_name,
- BOOL reuse);
void init_ncacn_np_use(void);
void free_ncacn_np_use(void);
struct ncacn_np *ncacn_np_initialise(struct ncacn_np *msrpc,
diff --git a/source/include/rpc_client_proto.h b/source/include/rpc_client_proto.h
index c1dbe9b1dce..e34ac01e7fc 100644
--- a/source/include/rpc_client_proto.h
+++ b/source/include/rpc_client_proto.h
@@ -700,11 +700,6 @@ BOOL msrpc_sam_query_userinfo(const char* srv_name, const DOM_SID *sid,
/*The following definitions come from rpc_client/ncacn_np_use.c */
-BOOL ncacn_np_establish_connection(struct ncacn_np *cli,
- const char *srv_name,
- const struct ntuser_creds *ntc,
- const char *pipe_name,
- BOOL reuse);
void init_ncacn_np_use(void);
void free_ncacn_np_use(void);
struct ncacn_np *ncacn_np_initialise(struct ncacn_np *msrpc,
diff --git a/source/rpc_client/ncacn_np_use.c b/source/rpc_client/ncacn_np_use.c
index d3cdf43c482..cf4cad4abd8 100644
--- a/source/rpc_client/ncacn_np_use.c
+++ b/source/rpc_client/ncacn_np_use.c
@@ -37,7 +37,7 @@ struct ncacn_np_use
};
static struct ncacn_np_use **msrpcs = NULL;
-uint32 num_msrpcs = 0;
+static uint32 num_msrpcs = 0;
/****************************************************************************
terminate client connection
@@ -58,7 +58,7 @@ static void ncacn_np_shutdown(struct ncacn_np *cli)
}
}
-BOOL ncacn_np_establish_connection(struct ncacn_np *cli,
+static BOOL ncacn_np_establish_connection(struct ncacn_np *cli,
const char *srv_name,
const struct ntuser_creds *ntc,
const char *pipe_name,