svn commit: trunk/busybox/util-linux

landley at busybox.net landley at busybox.net
Sat Feb 25 03:36:02 UTC 2006


Author: landley
Date: 2006-02-24 19:36:00 -0800 (Fri, 24 Feb 2006)
New Revision: 14266

Log:
Minor cleanup from Garrett Kajmowicz.


Modified:
   trunk/busybox/util-linux/fdisk.c


Changeset:
Modified: trunk/busybox/util-linux/fdisk.c
===================================================================
--- trunk/busybox/util-linux/fdisk.c	2006-02-25 03:21:45 UTC (rev 14265)
+++ trunk/busybox/util-linux/fdisk.c	2006-02-25 03:36:00 UTC (rev 14266)
@@ -37,8 +37,6 @@
 
 #include "busybox.h"
 
-#define MAKE_VERSION(p,q,r)     (65536*(p) + 256*(q) + (r))
-
 #define DKTYPENAMES
 
 #define BLKRRPART  _IO(0x12,95)    /* re-read partition table */
@@ -3977,8 +3975,7 @@
 static void
 get_sectorsize(void)
 {
-	if (!user_set_sector_size
-	 && get_kernel_revision() >= MAKE_VERSION(2,3,3)) {
+	if (!user_set_sector_size) {
 		int arg;
 		if (ioctl(fd, BLKSSZGET, &arg) == 0)
 			sector_size = arg;




More information about the busybox-cvs mailing list