summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-21 21:36:01 +0100
committerVolker Lendecke <vl@samba.org>2009-11-21 23:19:50 +0100
commit384f303c2cafa6659c24a62209de846cd5d45d84 (patch)
treeb9e3636fd3847d4e39c79942fe1ffadb39d7cee1 /source3
parentcf2febf3d1c591effc036a44eb0870aaf95c6848 (diff)
downloadsamba-384f303c2cafa6659c24a62209de846cd5d45d84.tar.gz
samba-384f303c2cafa6659c24a62209de846cd5d45d84.tar.bz2
samba-384f303c2cafa6659c24a62209de846cd5d45d84.zip
s3: Remove a struct typedef
Diffstat (limited to 'source3')
-rw-r--r--source3/include/msdfs.h4
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/libsmb/clidfs.c12
3 files changed, 9 insertions, 9 deletions
diff --git a/source3/include/msdfs.h b/source3/include/msdfs.h
index 800393c75d..b389229127 100644
--- a/source3/include/msdfs.h
+++ b/source3/include/msdfs.h
@@ -37,11 +37,11 @@
#define MAX_REFERRAL_COUNT 256
#define MAX_MSDFS_JUNCTIONS 256
-typedef struct _client_referral {
+struct client_dfs_referral {
uint32 proximity;
uint32 ttl;
char *dfspath;
-} CLIENT_DFS_REFERRAL;
+};
struct referral {
char *alternate_path; /* contains the path referred */
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 6a5b3ec18d..970c8af891 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2256,7 +2256,7 @@ void cli_cm_display(const struct cli_state *c);
bool cli_dfs_get_referral(TALLOC_CTX *ctx,
struct cli_state *cli,
const char *path,
- CLIENT_DFS_REFERRAL**refs,
+ struct client_dfs_referral **refs,
size_t *num_refs,
size_t *consumed);
bool cli_resolve_path(TALLOC_CTX *ctx,
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index 0afb75975e..afae4ff2ab 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -602,7 +602,7 @@ static bool cli_dfs_check_error( struct cli_state *cli, NTSTATUS status )
bool cli_dfs_get_referral(TALLOC_CTX *ctx,
struct cli_state *cli,
const char *path,
- CLIENT_DFS_REFERRAL**refs,
+ struct client_dfs_referral **refs,
size_t *num_refs,
size_t *consumed)
{
@@ -618,7 +618,7 @@ bool cli_dfs_get_referral(TALLOC_CTX *ctx,
char *consumed_path = NULL;
uint16_t consumed_ucs;
uint16 num_referrals;
- CLIENT_DFS_REFERRAL *referrals = NULL;
+ struct client_dfs_referral *referrals = NULL;
bool ret = false;
*num_refs = 0;
@@ -687,8 +687,8 @@ bool cli_dfs_get_referral(TALLOC_CTX *ctx,
int i;
uint16 node_offset;
- referrals = TALLOC_ARRAY(ctx, CLIENT_DFS_REFERRAL,
- num_referrals);
+ referrals = talloc_array(ctx, struct client_dfs_referral,
+ num_referrals);
if (!referrals) {
goto out;
@@ -755,7 +755,7 @@ bool cli_resolve_path(TALLOC_CTX *ctx,
struct cli_state **targetcli,
char **pp_targetpath)
{
- CLIENT_DFS_REFERRAL *refs = NULL;
+ struct client_dfs_referral *refs = NULL;
size_t num_refs = 0;
size_t consumed = 0;
struct cli_state *cli_ipc = NULL;
@@ -986,7 +986,7 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
const char *password,
const char *domain)
{
- CLIENT_DFS_REFERRAL *refs = NULL;
+ struct client_dfs_referral *refs = NULL;
size_t num_refs = 0;
size_t consumed = 0;
char *fullpath = NULL;