diff options
author | Günther Deschner <gd@samba.org> | 2005-12-21 23:15:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:55 -0500 |
commit | 107fe91d2b93a34be9fe056da46810dec66aa343 (patch) | |
tree | 2f015595a39b984b4d59c560fe49009060b730c1 /source3/rpcclient | |
parent | 25f13bb0f1b51704a64d9014121402ef1a1e5e84 (diff) | |
download | samba-107fe91d2b93a34be9fe056da46810dec66aa343.tar.gz samba-107fe91d2b93a34be9fe056da46810dec66aa343.tar.bz2 samba-107fe91d2b93a34be9fe056da46810dec66aa343.zip |
r12414: Remove the unnecessary SMB_STRDUP in server_role_str() + reuse the role
translation elsewhere.
Guenther
(This used to be commit 6c4a6da3dc7cecce09890a0da7d97b9d1bb47827)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 2050f2a779..e711cc7d1c 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -141,27 +141,6 @@ static const char *display_time(NTTIME nttime) return (string); } -static const char* server_role_str(uint32 server_role) -{ - switch(server_role) { - case ROLE_STANDALONE: - return SMB_STRDUP("ROLE_STANDALONE"); - break; - case ROLE_DOMAIN_MEMBER: - return SMB_STRDUP("ROLE_DOMAIN_MEMBER"); - break; - case ROLE_DOMAIN_BDC: - return SMB_STRDUP("ROLE_DOMAIN_BDC"); - break; - case ROLE_DOMAIN_PDC: - return SMB_STRDUP("ROLE_DOMAIN_PDC"); - break; - default: - return SMB_STRDUP("Unknown -- internal error?"); - break; - } -} - static void display_sam_unk_info_1(SAM_UNK_INFO_1 *info1) { |