s3: Remove unnecessary const qualifiers
authorTim Prouty <tprouty@samba.org>
Wed, 8 Jul 2009 00:27:50 +0000 (17:27 -0700)
committerTim Prouty <tprouty@samba.org>
Wed, 8 Jul 2009 01:02:53 +0000 (18:02 -0700)
source3/include/proto.h
source3/locking/locking.c
source3/smbd/dosmode.c

index fb10dd2af696550dd84975887fb93366745e7fe2..0315f304bb21fe31a3be4c7c5b388b9fa49b06df 100644 (file)
@@ -3474,8 +3474,7 @@ NTSTATUS can_set_delete_on_close(files_struct *fsp, bool delete_on_close,
 void set_delete_on_close_token(struct share_mode_lock *lck, const UNIX_USER_TOKEN *tok);
 void set_delete_on_close_lck(struct share_mode_lock *lck, bool delete_on_close, const UNIX_USER_TOKEN *tok);
 bool set_delete_on_close(files_struct *fsp, bool delete_on_close, const UNIX_USER_TOKEN *tok);
-bool set_sticky_write_time(const struct file_id fileid,
-                          struct timespec write_time);
+bool set_sticky_write_time(struct file_id fileid, struct timespec write_time);
 bool set_write_time(struct file_id fileid, struct timespec write_time);
 int share_mode_forall(void (*fn)(const struct share_mode_entry *, const char *,
                                 const char *, void *),
@@ -6243,9 +6242,9 @@ int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname,
                     uint32 dosmode, const char *parent_dir, bool newfile);
 int file_ntimes(connection_struct *conn, const struct smb_filename *smb_fname,
                struct smb_file_time *ft);
-bool set_sticky_write_time_path(struct file_id fileid,
-                               const struct timespec mtime);
-bool set_sticky_write_time_fsp(struct files_struct *fsp, const struct timespec mtime);
+bool set_sticky_write_time_path(struct file_id fileid, struct timespec mtime);
+bool set_sticky_write_time_fsp(struct files_struct *fsp,
+                              struct timespec mtime);
 bool update_write_time(struct files_struct *fsp);
 
 /* The following definitions come from smbd/error.c  */
index 78064cfcf9bdb4ecda0d0254f5fac5d7d8d7f5bc..dd735be88a32835d722c260e7b02449d464b3ad1 100644 (file)
@@ -1415,8 +1415,7 @@ bool set_delete_on_close(files_struct *fsp, bool delete_on_close, const UNIX_USE
        return True;
 }
 
-bool set_sticky_write_time(const struct file_id fileid,
-                          struct timespec write_time)
+bool set_sticky_write_time(struct file_id fileid, struct timespec write_time)
 {
        struct share_mode_lock *lck;
 
index 76034db164af63de29fe57337e3920675ae3aa6d..9d44eeec7db1cec244b9440e7db14eff83cad732 100644 (file)
@@ -781,8 +781,7 @@ int file_ntimes(connection_struct *conn, const struct smb_filename *smb_fname,
  returned on all future write time queries and set on close.
 ******************************************************************/
 
-bool set_sticky_write_time_path(const struct file_id fileid,
-                               const struct timespec mtime)
+bool set_sticky_write_time_path(struct file_id fileid, struct timespec mtime)
 {
        if (null_timespec(mtime)) {
                return true;
@@ -800,7 +799,7 @@ bool set_sticky_write_time_path(const struct file_id fileid,
  returned on all future write time queries and set on close.
 ******************************************************************/
 
-bool set_sticky_write_time_fsp(struct files_struct *fsp, const struct timespec mtime)
+bool set_sticky_write_time_fsp(struct files_struct *fsp, struct timespec mtime)
 {
        fsp->write_time_forced = true;
        TALLOC_FREE(fsp->update_write_time_event);