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/utils | |
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/utils')
-rw-r--r-- | source3/utils/testparm.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index 0ce838e5c7..8490c85009 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -348,24 +348,7 @@ print command parameter is ignored when using CUPS libraries.\n", if (!silent_mode && !section_name && !parameter_name) { - fprintf(stderr,"Server role: "); - switch(lp_server_role()) { - case ROLE_STANDALONE: - fprintf(stderr,"ROLE_STANDALONE\n"); - break; - case ROLE_DOMAIN_MEMBER: - fprintf(stderr,"ROLE_DOMAIN_MEMBER\n"); - break; - case ROLE_DOMAIN_BDC: - fprintf(stderr,"ROLE_DOMAIN_BDC\n"); - break; - case ROLE_DOMAIN_PDC: - fprintf(stderr,"ROLE_DOMAIN_PDC\n"); - break; - default: - fprintf(stderr,"Unknown -- internal error?\n"); - break; - } + fprintf(stderr,"Server role: %s", server_role_str(lp_server_role())); } if (!cname) { |