summaryrefslogtreecommitdiff
path: root/source3/utils/net_rap.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-09-24 23:23:01 +0200
committerGünther Deschner <gd@samba.org>2008-09-26 20:52:13 +0200
commit694786b23c30e0a3449c7222433e3fdc7ef7c0e1 (patch)
tree248621f298d710be2f7a3172d7900114bc6f1ad4 /source3/utils/net_rap.c
parentf50ebbe29ff13d43ae8544c273247173ff12d45a (diff)
downloadsamba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.tar.gz
samba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.tar.bz2
samba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.zip
net: Make share type lookup a function.
Diffstat (limited to 'source3/utils/net_rap.c')
-rw-r--r--source3/utils/net_rap.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c
index 883524dc2d..32f4dd31b4 100644
--- a/source3/utils/net_rap.c
+++ b/source3/utils/net_rap.c
@@ -34,13 +34,6 @@
#define ERRMSG_BOTH_SERVER_IPADDRESS "\nTarget server and IP address both "\
"specified. Do not set both at the same time. The target IP address was used\n"
-const char *share_type[] = {
- "Disk",
- "Print",
- "Dev",
- "IPC"
-};
-
static int errmsg_not_implemented(void)
{
d_printf("\nNot implemented\n");
@@ -201,7 +194,7 @@ static void long_share_fn(const char *share_name, uint32 type,
const char *comment, void *state)
{
d_printf("%-12s %-8.8s %-50s\n",
- share_name, share_type[type], comment);
+ share_name, net_share_type_str(type), comment);
}
static void share_fn(const char *share_name, uint32 type,
@@ -388,7 +381,7 @@ static void display_conns_func(uint16 conn_id, uint16 conn_type, uint16 opens,
const char *username, const char *netname)
{
d_printf("%-14.14s %-8.8s %5d\n",
- netname, share_type[conn_type], opens);
+ netname, net_share_type_str(conn_type), opens);
}
static int rap_session_info(struct net_context *c, int argc, const char **argv)