diff options
author | Sachidananda <sac@gluster.com> | 2010-09-06 10:06:03 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-13 06:44:34 -0700 |
commit | 14df5292f3860abbf64358739a0ca5510e7bb869 (patch) | |
tree | 0a2411c90b215560d9fcb605ef8d05e6859422d7 /xlators/features | |
parent | df35c2f74b81247b591f6dd1e6dc72503ca180e2 (diff) |
features/trash: Fix clang errors.
Signed-off-by: Sachidananda Urs <sac@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1127 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1127
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/trash/src/trash.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xlators/features/trash/src/trash.c b/xlators/features/trash/src/trash.c index 1fb4377bad3..8a11f6e55a1 100644 --- a/xlators/features/trash/src/trash.c +++ b/xlators/features/trash/src/trash.c @@ -189,13 +189,11 @@ trash_unlink_rename_cbk (call_frame_t *frame, void *cookie, xlator_t *this, struct iatt *prenewparent, struct iatt *postnewparent) { trash_local_t *local = NULL; - trash_private_t *priv = NULL; char *tmp_str = NULL; char *dir_name = NULL; char *tmp_cookie = NULL; loc_t tmp_loc = {0,}; - priv = this->private; local = frame->local; if ((op_ret == -1) && (op_errno == ENOENT)) { @@ -1431,7 +1429,6 @@ trash_ftruncate (call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset) int32_t init (xlator_t *this) { - int32_t ret = 0; data_t *data = NULL; trash_private_t *_priv = NULL; trash_elim_pattern_t *trav = NULL; @@ -1514,7 +1511,7 @@ init (xlator_t *this) GF_DEFAULT_MAX_FILE_SIZE / GF_UNIT_MB); _priv->max_trash_file_size = GF_DEFAULT_MAX_FILE_SIZE; } else { - ret = gf_string2bytesize (data->data, + (void)gf_string2bytesize (data->data, &max_trash_file_size64); if( max_trash_file_size64 > GF_ALLOWED_MAX_FILE_SIZE ) { gf_log (this->name, GF_LOG_DEBUG, |