mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
21765fa063
fix option parsing in the case some CONFIG_x are off. disable -b on NOMMU, make backgrounding work correctly (if a bit differently from MMU case). Previously, it wasn't working at all. stop using global data for flags in main(), opt bitfield works as well. function old new delta cryptpw_main 177 153 -24 packed_usage 24478 24452 -26 client_background 26 - -26 udhcpc_main 2462 2372 -90 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-166) Total: -166 bytes
30 lines
625 B
C
30 lines
625 B
C
/* vi: set sw=4 ts=4: */
|
|
#include <unistd.h>
|
|
|
|
/* Just #include "autoconf.h" doesn't work for builds in separate
|
|
* object directory */
|
|
#include "../include/autoconf.h"
|
|
|
|
/* Since we can't use platform.h, have to do this again by hand: */
|
|
#if ENABLE_NOMMU
|
|
#define BB_MMU 0
|
|
#define USE_FOR_NOMMU(...) __VA_ARGS__
|
|
#define USE_FOR_MMU(...)
|
|
#else
|
|
#define BB_MMU 1
|
|
#define USE_FOR_NOMMU(...)
|
|
#define USE_FOR_MMU(...) __VA_ARGS__
|
|
#endif
|
|
|
|
static const char usage_messages[] = ""
|
|
#define MAKE_USAGE
|
|
#include "usage.h"
|
|
#include "applets.h"
|
|
;
|
|
|
|
int main(void)
|
|
{
|
|
write(STDOUT_FILENO, usage_messages, sizeof(usage_messages));
|
|
return 0;
|
|
}
|