summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-27 02:32:50 +0200
committerVolker Lendecke <vl@samba.org>2010-09-27 18:14:47 +0200
commit3235f44ac48e6945446329d57f3ecd0d10fa47e1 (patch)
tree8c78d61e7cd79b9f35c6ec9ea03688fda65bcb0b
parentf1c1959f1368741df052fd1d53cd748b8608f2f0 (diff)
downloadsamba-3235f44ac48e6945446329d57f3ecd0d10fa47e1.tar.gz
samba-3235f44ac48e6945446329d57f3ecd0d10fa47e1.tar.bz2
samba-3235f44ac48e6945446329d57f3ecd0d10fa47e1.zip
s3: Make file_fnum static
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/smbd/files.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index f1bf7d379c..c55bf8343c 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4765,7 +4765,6 @@ files_struct *file_find_di_next(files_struct *start_fsp);
bool file_find_subpath(files_struct *dir_fsp);
void file_sync_all(connection_struct *conn);
void file_free(struct smb_request *req, files_struct *fsp);
-files_struct *file_fnum(uint16 fnum);
files_struct *file_fsp(struct smb_request *req, uint16 fid);
NTSTATUS dup_file_fsp(struct smb_request *req, files_struct *from,
uint32 access_mask, uint32 share_access,
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 733cdce1d7..d1b5fb1146 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -484,7 +484,7 @@ void file_free(struct smb_request *req, files_struct *fsp)
Get an fsp from a 16 bit fnum.
****************************************************************************/
-files_struct *file_fnum(uint16 fnum)
+static struct files_struct *file_fnum(uint16 fnum)
{
files_struct *fsp;
int count=0;