diff options
author | Günther Deschner <gd@samba.org> | 2005-12-21 23:15:57 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2005-12-21 23:15:57 +0000 |
commit | 119b53bcde917396b0c3d63e817590186e462e5e (patch) | |
tree | 63bb93a99d65fcaa3f05cca623960c8a5d09dcb5 /source/rpcclient | |
parent | c30ef29b2d0fc844087154462a30a40f1640336c (diff) | |
download | samba-119b53bcde917396b0c3d63e817590186e462e5e.tar.gz samba-119b53bcde917396b0c3d63e817590186e462e5e.tar.xz samba-119b53bcde917396b0c3d63e817590186e462e5e.zip |
r12414: Remove the unnecessary SMB_STRDUP in server_role_str() + reuse the role
translation elsewhere.
Guenther
Diffstat (limited to 'source/rpcclient')
-rw-r--r-- | source/rpcclient/cmd_samr.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c index 2050f2a7796..e711cc7d1c0 100644 --- a/source/rpcclient/cmd_samr.c +++ b/source/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) { |