diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-01-21 14:09:18 +0900 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-21 14:58:07 +0100 |
commit | d27077bd761277cf8075f8e489b511af1c2acef3 (patch) | |
tree | 1d90e10ed8828fc2aba8732614f93f715261d74c /fs | |
parent | 2ce9068d853ed59b5d731e1d6b3945b9fb0f078e (diff) | |
download | barebox-d27077bd761277cf8075f8e489b511af1c2acef3.tar.gz barebox-d27077bd761277cf8075f8e489b511af1c2acef3.tar.xz |
linux/kernel.h: rename USHORT_MAX, SHORT_MAX, SHORT_MIN
Linux uses SHRT_* instead of SHORT_*. The <limits.h> of C does
the same. Let's follow this standard.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/parseopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/parseopt.c b/fs/parseopt.c index fbe53cfb02..12dbe1813c 100644 --- a/fs/parseopt.c +++ b/fs/parseopt.c @@ -26,7 +26,7 @@ again: } v = simple_strtoul(start + optlen + 1, &endp, 0); - if (v > USHORT_MAX) + if (v > USHRT_MAX) return; if (*endp == ',' || *endp == '\0') |