From 2f4bd23e9e12f03c71ee63b6c76f1e4441696c77 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 19 Dec 2010 18:10:29 +0100 Subject: dcesrv_srvsvc: Use constants. --- source4/rpc_server/srvsvc/dcesrv_srvsvc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4') 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: -- cgit v1.2.1