From 9e323d5db5937ed35c4947aca3931f0774617ada Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Apr 2004 00:33:17 +0000 Subject: r360: use the STYPE_* definitions from srvsvc.idl (This used to be commit 32707fe3c0fd7139b597fef1c2b096992e51bdc6) --- source4/client/client.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source4/client') diff --git a/source4/client/client.c b/source4/client/client.c index dc2aed7f55..d9a8aa7229 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -2210,12 +2210,14 @@ static int cmd_reput(void) */ static const char *share_type_str(uint32 type) { - switch (type & 0x3) { - case 0: + switch (type & 0xF) { + case STYPE_DISKTREE: return "Disk"; - case 1: + case STYPE_PRINTQ: return "Printer"; - case 3: + case STYPE_DEVICE: + return "Device"; + case STYPE_IPC: return "IPC"; default: return "Unknown"; -- cgit