aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
committerRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
commitd921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch)
treee4a2769349867c441cf2983d83097bb66701a733 /miscutils/hdparm.c
parent6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff)
downloadbusybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.bz2
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 925644e1f..aea96d622 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -13,22 +13,8 @@
13 */ 13 */
14 14
15#include "busybox.h" 15#include "busybox.h"
16#include <string.h>
17#include <fcntl.h>
18#include <errno.h>
19#include <ctype.h>
20#include <sys/ioctl.h>
21#include <sys/sysmacros.h>
22#include <sys/times.h>
23#include <sys/mman.h>
24#include <linux/types.h>
25#include <linux/hdreg.h> 16#include <linux/hdreg.h>
26 17
27#if BB_BIG_ENDIAN && !defined(__USE_XOPEN)
28# define __USE_XOPEN
29#endif
30#include <unistd.h>
31
32/* device types */ 18/* device types */
33/* ------------ */ 19/* ------------ */
34#define NO_DEV 0xffff 20#define NO_DEV 0xffff
@@ -1619,7 +1605,7 @@ static void process_dev(char *devname)
1619 unsigned char args[4] = {WIN_SETFEATURES,0,0,0}; 1605 unsigned char args[4] = {WIN_SETFEATURES,0,0,0};
1620 const char *fmt = " %s\t= %2ld"; 1606 const char *fmt = " %s\t= %2ld";
1621 1607
1622 fd = bb_xopen(devname, O_RDONLY|O_NONBLOCK); 1608 fd = xopen(devname, O_RDONLY|O_NONBLOCK);
1623 printf("\n%s:\n", devname); 1609 printf("\n%s:\n", devname);
1624 1610
1625 if (set_readahead) 1611 if (set_readahead)