style fix, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
0545bfa841
commit
8c317f03f6
@ -70,13 +70,20 @@
|
|||||||
#if ENABLE_UNICODE_SUPPORT
|
#if ENABLE_UNICODE_SUPPORT
|
||||||
# define BB_NUL ((wchar_t)0)
|
# define BB_NUL ((wchar_t)0)
|
||||||
# define CHAR_T wchar_t
|
# define CHAR_T wchar_t
|
||||||
static bool BB_isspace(CHAR_T c) { return ((unsigned)c < 256 && isspace(c)); }
|
static bool BB_isspace(CHAR_T c)
|
||||||
|
{
|
||||||
|
return ((unsigned)c < 256 && isspace(c));
|
||||||
|
}
|
||||||
# if ENABLE_FEATURE_EDITING_VI
|
# if ENABLE_FEATURE_EDITING_VI
|
||||||
static bool BB_isalnum_or_underscore(CHAR_T c) {
|
static bool BB_isalnum_or_underscore(CHAR_T c)
|
||||||
|
{
|
||||||
return ((unsigned)c < 256 && isalnum(c)) || c == '_';
|
return ((unsigned)c < 256 && isalnum(c)) || c == '_';
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
static bool BB_ispunct(CHAR_T c) { return ((unsigned)c < 256 && ispunct(c)); }
|
static bool BB_ispunct(CHAR_T c)
|
||||||
|
{
|
||||||
|
return ((unsigned)c < 256 && ispunct(c));
|
||||||
|
}
|
||||||
# undef isspace
|
# undef isspace
|
||||||
# undef isalnum
|
# undef isalnum
|
||||||
# undef ispunct
|
# undef ispunct
|
||||||
|
@ -66,7 +66,10 @@ static void check_tainted(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static void check_tainted(void) { putchar('\n'); }
|
static ALWAYS_INLINE void check_tainted(void)
|
||||||
|
{
|
||||||
|
putchar('\n');
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||||
|
@ -124,7 +124,8 @@ static char* print_tc_classid(uint32_t cid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get a qdisc handle. Return 0 on success, !0 otherwise. */
|
/* Get a qdisc handle. Return 0 on success, !0 otherwise. */
|
||||||
static int get_qdisc_handle(uint32_t *h, const char *str) {
|
static int get_qdisc_handle(uint32_t *h, const char *str)
|
||||||
|
{
|
||||||
uint32_t maj;
|
uint32_t maj;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
@ -143,7 +144,8 @@ static int get_qdisc_handle(uint32_t *h, const char *str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get class ID. Return 0 on success, !0 otherwise. */
|
/* Get class ID. Return 0 on success, !0 otherwise. */
|
||||||
static int get_tc_classid(uint32_t *h, const char *str) {
|
static int get_tc_classid(uint32_t *h, const char *str)
|
||||||
|
{
|
||||||
uint32_t maj, min;
|
uint32_t maj, min;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
@ -365,7 +365,8 @@ static int FAST_FUNC read_staticlease(const char *const_line, void *arg)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int FAST_FUNC read_optset(const char *line, void *arg) {
|
static int FAST_FUNC read_optset(const char *line, void *arg)
|
||||||
|
{
|
||||||
return udhcp_str2optset(line, arg,
|
return udhcp_str2optset(line, arg,
|
||||||
dhcp_optflags, dhcp_option_strings,
|
dhcp_optflags, dhcp_option_strings,
|
||||||
/*dhcpv6:*/ 0
|
/*dhcpv6:*/ 0
|
||||||
|
@ -312,7 +312,7 @@ static void progress_meter(int flag)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static ALWAYS_INLINE void progress_meter(int flag UNUSED_PARAM) { }
|
static ALWAYS_INLINE void progress_meter(int flag UNUSED_PARAM) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -1194,7 +1194,10 @@ static int daemonize(void)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline int daemonize(void) { return -ENOSYS; }
|
static inline int daemonize(void)
|
||||||
|
{
|
||||||
|
return -ENOSYS;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* TODO */
|
/* TODO */
|
||||||
|
Loading…
Reference in New Issue
Block a user