mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Fix compile when CONFIG_FEATURE_HDPARM_GET_IDENTITY is disabled
This commit is contained in:
parent
7dad86601a
commit
416c24224d
@ -507,6 +507,8 @@ static void bb_ioctl_on_off(int fd, int request, void *argp, const char *string,
|
||||
on_off((unsigned long) argp);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY
|
||||
static void if_else_printf(unsigned long i, char *fmt1, char *fmt2, ... )
|
||||
{
|
||||
va_list ap;
|
||||
@ -529,6 +531,13 @@ static void xprint_ascii(uint16_t *val ,int i, char * string, int n)
|
||||
}
|
||||
}
|
||||
|
||||
static void if_strcat(unsigned long test, char *modes, char *string)
|
||||
{
|
||||
if (test)
|
||||
strcat(modes,string);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void sync_and_sleep(int i)
|
||||
{
|
||||
sync();
|
||||
@ -568,12 +577,6 @@ unsigned long int set_flag(char *p, char max)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void if_strcat(unsigned long test, char *modes, char *string)
|
||||
{
|
||||
if (test)
|
||||
strcat(modes,string);
|
||||
}
|
||||
|
||||
/* end of busybox specific stuff */
|
||||
|
||||
#ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY
|
||||
|
Loading…
Reference in New Issue
Block a user