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>
This commit is contained in:
Silvan Jegen
2014-02-25 18:12:52 +01:00
committed by John W. Linville
parent 9ffd2e9a17
commit c8e4955653
17 changed files with 22 additions and 22 deletions

View File

@@ -42,7 +42,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: