From e7cfb78543a7d6492819b4c4396970829963ccec Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 7 Sep 2010 07:06:04 +0000 Subject: [PATCH] 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 --- scst/src/dev_handlers/scst_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_user.c b/scst/src/dev_handlers/scst_user.c index 53ed9131c..b83f4e354 100644 --- a/scst/src/dev_handlers/scst_user.c +++ b/scst/src/dev_handlers/scst_user.c @@ -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,