Fixed a compiler warning that was introduced in r2057.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2062 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-09-07 07:06:04 +00:00
parent c66ae1850e
commit e7cfb78543
+1 -1
View File
@@ -2765,7 +2765,7 @@ static void dev_user_setup_functions(struct scst_user_dev *dev)
static int dev_user_check_version(const struct scst_user_dev_desc *dev_desc)
{
char str[max(sizeof(DEV_USER_VERSION)+1, 20U)];
char str[max_t(int, sizeof(DEV_USER_VERSION)+1, 20)];
int res = 0, rc;
rc = copy_from_user(str,