diff options
author | Michael Adam <obnox@samba.org> | 2012-06-12 17:56:43 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-15 03:28:13 +0200 |
commit | 5d2af68a25534bd84601f3ac40853ef9fcb21edb (patch) | |
tree | fcdecd5b7e3b3ecfee835236e53337b5c7ee34d9 /source3/smbd/files.c | |
parent | 63bfc70a2ad391c7d0f0ce8d7c637ca2b5ba5645 (diff) | |
download | samba-5d2af68a25534bd84601f3ac40853ef9fcb21edb.tar.gz samba-5d2af68a25534bd84601f3ac40853ef9fcb21edb.tar.xz samba-5d2af68a25534bd84601f3ac40853ef9fcb21edb.zip |
s3:smbd: use FNUM_FIELD_INVALID instead of literal -1
This is in preparation of changing fnum to uint64_t
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r-- | source3/smbd/files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 12ec04cd3b..ada9d67bc4 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -82,7 +82,7 @@ NTSTATUS fsp_new(struct connection_struct *conn, TALLOC_CTX *mem_ctx, fsp->fh->ref_count = 1; fsp->fh->fd = -1; - fsp->fnum = -1; + fsp->fnum = FNUM_FIELD_INVALID; fsp->conn = conn; DLIST_ADD(sconn->files, fsp); @@ -581,7 +581,7 @@ static struct files_struct *file_fnum(struct smbd_server_connection *sconn, int count=0; for (fsp=sconn->files; fsp; fsp=fsp->next, count++) { - if (fsp->fnum == -1) { + if (fsp->fnum == FNUM_FIELD_INVALID) { continue; } |