Fix compilations problems with gcc 4.6 reported by Bart Van Assche <bvanassche@acm.org>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3367 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-04-08 17:50:39 +00:00
parent b1d4ad6706
commit 03c8f6fcd7
2 changed files with 6 additions and 6 deletions

View File

@@ -4046,8 +4046,8 @@ struct scst_sysfs_work_item {
};
struct scst_session *sess;
struct {
struct scst_tgt *tgt;
unsigned long l;
struct scst_tgt *tgt_r;
unsigned long rel_tgt_id;
};
};
int work_res;

View File

@@ -2112,8 +2112,8 @@ static ssize_t scst_rel_tgt_id_show(struct kobject *kobj,
static int scst_process_rel_tgt_id_store(struct scst_sysfs_work_item *work)
{
int res = 0;
struct scst_tgt *tgt = work->tgt;
unsigned long rel_tgt_id = work->l;
struct scst_tgt *tgt = work->tgt_r;
unsigned long rel_tgt_id = work->rel_tgt_id;
TRACE_ENTRY();
@@ -2180,8 +2180,8 @@ static ssize_t scst_rel_tgt_id_store(struct kobject *kobj,
if (res != 0)
goto out;
work->tgt = tgt;
work->l = rel_tgt_id;
work->tgt_r = tgt;
work->rel_tgt_id = rel_tgt_id;
kobject_get(&tgt->tgt_kobj);