aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/hdparm.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 6580bf592..16ab7e67d 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,
507 on_off((unsigned long) argp); 507 on_off((unsigned long) argp);
508 } 508 }
509} 509}
510
511#ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY
510static void if_else_printf(unsigned long i, char *fmt1, char *fmt2, ... ) 512static void if_else_printf(unsigned long i, char *fmt1, char *fmt2, ... )
511{ 513{
512 va_list ap; 514 va_list ap;
@@ -529,6 +531,13 @@ static void xprint_ascii(uint16_t *val ,int i, char * string, int n)
529 } 531 }
530} 532}
531 533
534static void if_strcat(unsigned long test, char *modes, char *string)
535{
536 if (test)
537 strcat(modes,string);
538}
539#endif
540
532static void sync_and_sleep(int i) 541static void sync_and_sleep(int i)
533{ 542{
534 sync(); 543 sync();
@@ -568,12 +577,6 @@ unsigned long int set_flag(char *p, char max)
568 return 0; 577 return 0;
569} 578}
570 579
571static void if_strcat(unsigned long test, char *modes, char *string)
572{
573 if (test)
574 strcat(modes,string);
575}
576
577/* end of busybox specific stuff */ 580/* end of busybox specific stuff */
578 581
579#ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY 582#ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY