net: Replace min macro with min_t

Instead of an explicit cast, use the min_t macro.

Signed-off-by: Silvan Jegen <s.jegen@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Esse commit está contido em:
Silvan Jegen
2014-02-25 18:12:52 +01:00
commit de John W. Linville
commit c8e4955653
17 arquivos alterados com 22 adições e 22 exclusões

Ver arquivo

@@ -40,7 +40,7 @@ static int get_integer(const char *buf, size_t count)
if (count == 0)
goto out;
count = min(count, (size_t) 10);
count = min_t(size_t, count, 10);
memcpy(tmp, buf, count);
ret = simple_strtol(tmp, NULL, 10);
out: