summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2003-07-11 14:33:13 +0000
committerHerb Lewis <herb@samba.org>2003-07-11 14:33:13 +0000
commit5359b8dc97d325ce8eae80cd2c21c4520a99d358 (patch)
tree609890c74167f6411acae6c0f9b3732cb5226d1b /source3/smbd
parente1725f0c047209375c7a47638bf3865f532d35f0 (diff)
downloadsamba-5359b8dc97d325ce8eae80cd2c21c4520a99d358.tar.gz
samba-5359b8dc97d325ce8eae80cd2c21c4520a99d358.tar.bz2
samba-5359b8dc97d325ce8eae80cd2c21c4520a99d358.zip
use names from enumerated type to get rid of compiler warnings
(This used to be commit c9d6782e091406ed105b7dc34c8c83e53bfe515e)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 13692d3c2c..c574d9d563 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -562,7 +562,7 @@ int reply_ntcreate_and_X(connection_struct *conn,
{
int result;
pstring fname;
- enum FAKE_FILE_TYPE fake_file_type = 0;
+ enum FAKE_FILE_TYPE fake_file_type = FAKE_FILE_TYPE_NONE;
uint32 flags = IVAL(inbuf,smb_ntcreate_Flags);
uint32 desired_access = IVAL(inbuf,smb_ntcreate_DesiredAccess);
uint32 file_attributes = IVAL(inbuf,smb_ntcreate_FileAttributes);
@@ -692,7 +692,7 @@ create_options = 0x%x root_dir_fid = 0x%x\n", flags, desired_access, file_attrib
if( strchr_m(fname, ':')) {
#ifdef HAVE_SYS_QUOTAS
- if ((fake_file_type=is_fake_file(fname))!=0) {
+ if ((fake_file_type=is_fake_file(fname))!=FAKE_FILE_TYPE_NONE) {
/*
* here we go! support for changing the disk quotas --metze
*
@@ -784,7 +784,7 @@ create_options = 0x%x root_dir_fid = 0x%x\n", flags, desired_access, file_attrib
* before issuing an oplock break request to
* our client. JRA. */
- if (fake_file_type==0) {
+ if (fake_file_type==FAKE_FILE_TYPE_NONE) {
fsp = open_file_shared1(conn,fname,&sbuf,
desired_access,
smb_open_mode,