[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Tue Feb 7 12:57:02 MST 2012


The branch, master has been updated
       via  502186f Remove unused get_file_size() function.
      from  27f6421 s3: Increase debug level of basic ctdb packet handling

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 502186fe0ce4378e7eaf52bf33c38210cd0146cf
Author: Jeremy Allison <jra at samba.org>
Date:   Tue Feb 7 10:20:36 2012 -0800

    Remove unused get_file_size() function.
    
    Autobuild-User: Jeremy Allison <jra at samba.org>
    Autobuild-Date: Tue Feb  7 20:56:28 CET 2012 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/include/proto.h |    1 -
 source3/lib/util.c      |   13 -------------
 2 files changed, 0 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/proto.h b/source3/include/proto.h
index 3cfb93f..a94f6c4 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -490,7 +490,6 @@ bool file_exist_stat(const char *fname,SMB_STRUCT_STAT *sbuf,
 		     bool fake_dir_create_times);
 bool socket_exist(const char *fname);
 uint64_t get_file_size_stat(const SMB_STRUCT_STAT *sbuf);
-SMB_OFF_T get_file_size(char *file_name);
 void show_msg(const char *buf);
 int set_message_bcc(char *buf,int num_bytes);
 ssize_t message_push_blob(uint8 **outbuf, DATA_BLOB blob);
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 2e432ab..b783c7e 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -127,19 +127,6 @@ uint64_t get_file_size_stat(const SMB_STRUCT_STAT *sbuf)
 }
 
 /*******************************************************************
- Returns the size in bytes of the named file.
-********************************************************************/
-
-SMB_OFF_T get_file_size(char *file_name)
-{
-	SMB_STRUCT_STAT buf;
-	buf.st_ex_size = 0;
-	if (sys_stat(file_name, &buf, false) != 0)
-		return (SMB_OFF_T)-1;
-	return get_file_size_stat(&buf);
-}
-
-/*******************************************************************
  Show a smb message structure.
 ********************************************************************/
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list