summaryrefslogtreecommitdiff
path: root/source4/client/client.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-26 00:33:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:34 -0500
commit9e323d5db5937ed35c4947aca3931f0774617ada (patch)
treece711df47a5ec2adeae801be68a12dee9242a1c7 /source4/client/client.c
parent31d44e36823af542073040fc5a761f00ff28a1ed (diff)
downloadsamba-9e323d5db5937ed35c4947aca3931f0774617ada.tar.gz
samba-9e323d5db5937ed35c4947aca3931f0774617ada.tar.bz2
samba-9e323d5db5937ed35c4947aca3931f0774617ada.zip
r360: use the STYPE_* definitions from srvsvc.idl
(This used to be commit 32707fe3c0fd7139b597fef1c2b096992e51bdc6)
Diffstat (limited to 'source4/client/client.c')
-rw-r--r--source4/client/client.c10
1 files changed, 6 insertions, 4 deletions
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";