From 57a39c29392cec65c963f37a159d04f90277aad7 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 23 Mar 2014 12:20:34 +0000 Subject: shell_common: exclude more unused ulimit code --- shell/shell_common.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/shell/shell_common.c b/shell/shell_common.c index 52e1025a2..4c870fab8 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c @@ -277,6 +277,7 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), /* ulimit builtin */ +#if !ENABLE_PLATFORM_MINGW32 struct limits { uint8_t cmd; /* RLIMIT_xxx fit into it */ uint8_t factor_shift; /* shift by to get rlim_{cur,max} values */ @@ -374,13 +375,6 @@ static const char ulimit_opt_string[] = "-HSa" #endif ; -#if ENABLE_PLATFORM_MINGW32 -int FAST_FUNC -shell_builtin_ulimit(char **argv) -{ - return 1; -} -#else static void printlim(unsigned opts, const struct rlimit *limit, const struct limits *l) { @@ -509,4 +503,9 @@ shell_builtin_ulimit(char **argv) return 0; } +#else +int FAST_FUNC shell_builtin_ulimit(char **argv UNUSED_PARAM) +{ + return 1; +} #endif -- cgit v1.2.3-55-g6feb