diff options
author | Ron Yorston <rmy@pobox.com> | 2014-03-23 12:20:34 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-03-23 12:20:34 +0000 |
commit | 57a39c29392cec65c963f37a159d04f90277aad7 (patch) | |
tree | 473997b90b3d1eb24e43f271fb6687e708935dbc /shell | |
parent | 13406a9e534a0d3a790c84c6366aea597944daaf (diff) | |
download | busybox-w32-57a39c29392cec65c963f37a159d04f90277aad7.tar.gz busybox-w32-57a39c29392cec65c963f37a159d04f90277aad7.tar.bz2 busybox-w32-57a39c29392cec65c963f37a159d04f90277aad7.zip |
shell_common: exclude more unused ulimit code
Diffstat (limited to 'shell')
-rw-r--r-- | shell/shell_common.c | 13 |
1 files 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), | |||
277 | 277 | ||
278 | /* ulimit builtin */ | 278 | /* ulimit builtin */ |
279 | 279 | ||
280 | #if !ENABLE_PLATFORM_MINGW32 | ||
280 | struct limits { | 281 | struct limits { |
281 | uint8_t cmd; /* RLIMIT_xxx fit into it */ | 282 | uint8_t cmd; /* RLIMIT_xxx fit into it */ |
282 | uint8_t factor_shift; /* shift by to get rlim_{cur,max} values */ | 283 | uint8_t factor_shift; /* shift by to get rlim_{cur,max} values */ |
@@ -374,13 +375,6 @@ static const char ulimit_opt_string[] = "-HSa" | |||
374 | #endif | 375 | #endif |
375 | ; | 376 | ; |
376 | 377 | ||
377 | #if ENABLE_PLATFORM_MINGW32 | ||
378 | int FAST_FUNC | ||
379 | shell_builtin_ulimit(char **argv) | ||
380 | { | ||
381 | return 1; | ||
382 | } | ||
383 | #else | ||
384 | static void printlim(unsigned opts, const struct rlimit *limit, | 378 | static void printlim(unsigned opts, const struct rlimit *limit, |
385 | const struct limits *l) | 379 | const struct limits *l) |
386 | { | 380 | { |
@@ -509,4 +503,9 @@ shell_builtin_ulimit(char **argv) | |||
509 | 503 | ||
510 | return 0; | 504 | return 0; |
511 | } | 505 | } |
506 | #else | ||
507 | int FAST_FUNC shell_builtin_ulimit(char **argv UNUSED_PARAM) | ||
508 | { | ||
509 | return 1; | ||
510 | } | ||
512 | #endif | 511 | #endif |