diff options
author | Kai Blin <kai@samba.org> | 2008-09-24 23:23:01 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-09-26 20:52:13 +0200 |
commit | 694786b23c30e0a3449c7222433e3fdc7ef7c0e1 (patch) | |
tree | 248621f298d710be2f7a3172d7900114bc6f1ad4 /source3/utils/net_rpc.c | |
parent | f50ebbe29ff13d43ae8544c273247173ff12d45a (diff) | |
download | samba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.tar.gz samba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.tar.bz2 samba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.zip |
net: Make share type lookup a function.
Diffstat (limited to 'source3/utils/net_rpc.c')
-rw-r--r-- | source3/utils/net_rpc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index a849ec4c10..0e91144d33 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -26,8 +26,6 @@ static int net_mode_share; static bool sync_files(struct copy_clistate *cp_clistate, const char *mask); -extern const char *share_type[]; - /** * @file net_rpc.c * @@ -2876,7 +2874,7 @@ static void display_share_info_1(struct net_context *c, if (c->opt_long_list_entries) { d_printf("%-12s %-8.8s %-50s\n", r->shi1_netname, - share_type[r->shi1_type & ~(STYPE_TEMPORARY|STYPE_HIDDEN)], + net_share_type_str(r->shi1_type & ~(STYPE_TEMPORARY|STYPE_HIDDEN)), r->shi1_remark); } else { d_printf("%s\n", r->shi1_netname); |