Minor compiler warnings cleanup

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-07-28 18:41:46 +00:00
parent dddcae1418
commit f1313dfc7e

View File

@@ -1960,7 +1960,7 @@ static ssize_t scst_luns_mgmt_show(struct kobject *kobj,
"param_name=value pairs separated by ';'\n"
"\nThe following parameters available: read_only.";
return sprintf(buf, help);
return sprintf(buf, "%s", help);
}
static ssize_t scst_luns_mgmt_store(struct kobject *kobj,
@@ -2309,7 +2309,7 @@ static ssize_t scst_ini_group_mgmt_show(struct kobject *kobj,
static char *help = "Usage: echo \"create GROUP_NAME\" >mgmt\n"
" echo \"del GROUP_NAME\" >mgmt\n";
return sprintf(buf, help);
return sprintf(buf, "%s", help);
}
static ssize_t scst_ini_group_mgmt_store(struct kobject *kobj,
@@ -2640,7 +2640,7 @@ static ssize_t scst_acg_ini_mgmt_show(struct kobject *kobj,
" echo \"clear\" "
">mgmt\n";
return sprintf(buf, help);
return sprintf(buf, "%s", help);
}
static ssize_t scst_acg_ini_mgmt_store(struct kobject *kobj,
@@ -3632,7 +3632,7 @@ static ssize_t scst_devt_pass_through_mgmt_show(struct kobject *kobj,
{
char *help = "Usage: echo \"add_device H:C:I:L\" >mgmt\n"
" echo \"del_device H:C:I:L\" >mgmt\n";
return sprintf(buf, help);
return sprintf(buf, "%s", help);
}
static ssize_t scst_devt_pass_through_mgmt_store(struct kobject *kobj,