[BusyBox-cvs] busybox/miscutils hdparm.c,1.8,1.9

Erik Andersen andersen at busybox.net
Fri Dec 12 00:09:00 UTC 2003


Update of /var/cvs/busybox/miscutils
In directory winder:/tmp/cvs-serv11436/miscutils

Modified Files:
	hdparm.c 
Log Message:
Fix compile when CONFIG_FEATURE_HDPARM_GET_IDENTITY is disabled


Index: hdparm.c
===================================================================
RCS file: /var/cvs/busybox/miscutils/hdparm.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- hdparm.c	28 Nov 2003 22:55:03 -0000	1.8
+++ hdparm.c	12 Dec 2003 00:08:57 -0000	1.9
@@ -507,6 +507,8 @@
 		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 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 @@
 	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




More information about the busybox-cvs mailing list