summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-01 09:12:41 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-01 09:12:41 +0000
commit9930b0b0650ae3e38c033c28672398425dd8228c (patch)
tree47b143202d38ba49bae8be103d6420f5de8f33a3 /source3/smbd
parent859b13577309912fc5b3591971412b2cb3a42f28 (diff)
downloadsamba-9930b0b0650ae3e38c033c28672398425dd8228c.tar.gz
samba-9930b0b0650ae3e38c033c28672398425dd8228c.tar.bz2
samba-9930b0b0650ae3e38c033c28672398425dd8228c.zip
used findstatic.pl to make some variables static and remove some dead
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/fileio.c4
-rw-r--r--source3/smbd/vfs.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c
index fd660f40d0..710ba396d8 100644
--- a/source3/smbd/fileio.c
+++ b/source3/smbd/fileio.c
@@ -28,7 +28,7 @@ static BOOL setup_write_cache(files_struct *, SMB_OFF_T);
Seek a file. Try to avoid the seek if possible.
****************************************************************************/
-SMB_OFF_T seek_file(files_struct *fsp,SMB_OFF_T pos)
+static SMB_OFF_T seek_file(files_struct *fsp,SMB_OFF_T pos)
{
SMB_OFF_T offset = 0;
SMB_OFF_T seek_ret;
@@ -58,7 +58,7 @@ SMB_OFF_T seek_file(files_struct *fsp,SMB_OFF_T pos)
****************************************************************************/
-BOOL read_from_write_cache(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n)
+static BOOL read_from_write_cache(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n)
{
write_cache *wcp = fsp->wcp;
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 1d1e1e45fc..5e1dc68bdb 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -32,7 +32,7 @@ struct vfs_syminfo {
very important. They must be in the same order as defined in
vfs.h. Change at your own peril. */
-struct vfs_ops default_vfs_ops = {
+static struct vfs_ops default_vfs_ops = {
/* Disk operations */
@@ -222,7 +222,7 @@ BOOL vfs_directory_exist(connection_struct *conn, const char *dname, SMB_STRUCT_
/*******************************************************************
vfs getwd wrapper
********************************************************************/
-char *vfs_getwd(connection_struct *conn, char *path)
+static char *vfs_getwd(connection_struct *conn, char *path)
{
return conn->vfs_ops.getwd(conn,path);
}
@@ -562,7 +562,7 @@ int vfs_ChDir(connection_struct *conn, char *path)
/* number of list structures for a caching GetWd function. */
#define MAX_GETWDCACHE (50)
-struct {
+static struct {
SMB_DEV_T dev; /* These *must* be compatible with the types returned in a stat() call. */
SMB_INO_T inode; /* These *must* be compatible with the types returned in a stat() call. */
char *dos_path; /* The pathname in DOS format. */