summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-19 18:10:29 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-12-19 21:44:06 +0100
commit2f4bd23e9e12f03c71ee63b6c76f1e4441696c77 (patch)
treeb6314a10d87dd19c80bfb0f440deda2e049fefa0 /source4
parent716ea734e4cd83a2030ca2cac10056bdaab1a021 (diff)
downloadsamba-2f4bd23e9e12f03c71ee63b6c76f1e4441696c77.tar.gz
samba-2f4bd23e9e12f03c71ee63b6c76f1e4441696c77.tar.bz2
samba-2f4bd23e9e12f03c71ee63b6c76f1e4441696c77.zip
dcesrv_srvsvc: Use constants.
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/srvsvc/dcesrv_srvsvc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/srvsvc/dcesrv_srvsvc.c b/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
index 611916c52c..8ccfe6babf 100644
--- a/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
+++ b/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
@@ -431,13 +431,13 @@ static WERROR dcesrv_srvsvc_NetShareAdd(struct dcesrv_call_state *dce_call, TALL
info[i].name = SHARE_TYPE;
info[i].type = SHARE_INFO_STRING;
switch (r->in.info->info2->type) {
- case 0x00:
+ case STYPE_DISKTREE:
info[i].value = talloc_strdup(info, "DISK");
break;
- case 0x01:
+ case STYPE_PRINTQ:
info[i].value = talloc_strdup(info, "PRINTER");
break;
- case 0x03:
+ case STYPE_IPC:
info[i].value = talloc_strdup(info, "IPC");
break;
default: