diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-19 18:10:29 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-12-19 21:44:06 +0100 |
commit | 2f4bd23e9e12f03c71ee63b6c76f1e4441696c77 (patch) | |
tree | b6314a10d87dd19c80bfb0f440deda2e049fefa0 /source4 | |
parent | 716ea734e4cd83a2030ca2cac10056bdaab1a021 (diff) | |
download | samba-2f4bd23e9e12f03c71ee63b6c76f1e4441696c77.tar.gz |
dcesrv_srvsvc: Use constants.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/srvsvc/dcesrv_srvsvc.c | 6 |
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 611916c52c9..8ccfe6babf5 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: |