diff options
author | Eric Andersen | 2003-12-12 00:08:57 +0000 |
---|---|---|
committer | Eric Andersen | 2003-12-12 00:08:57 +0000 |
commit | 416c24224dce4abc69708031b74a0e16127af874 (patch) | |
tree | 96fc366cf497b207415eb88cde3ac44fddfa6048 /miscutils | |
parent | 7dad86601ab430dc8fca86f03ab3f0d6758e1cea (diff) | |
download | busybox-416c24224dce4abc69708031b74a0e16127af874.zip busybox-416c24224dce4abc69708031b74a0e16127af874.tar.gz |
Fix compile when CONFIG_FEATURE_HDPARM_GET_IDENTITY is disabled
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/hdparm.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 6580bf5..16ab7e6 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -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 |