summaryrefslogtreecommitdiff
path: root/util-linux/fdisk.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-11-06 03:05:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-11-06 03:05:54 +0000
commit6bef3d1d2216234454875052220ca0f477a820b4 (patch)
tree717060345370b781d3d1cde7ab4dd29304a066e8 /util-linux/fdisk.c
parent1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (diff)
downloadbusybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.tar.gz
busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.tar.bz2
busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.zip
fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h *: style fixes
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r--util-linux/fdisk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 01c01bd24..3b60847c9 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -1837,7 +1837,8 @@ wrong_p_order(int *prev)
1837 last_p_start_pos = 0; 1837 last_p_start_pos = 0;
1838 } 1838 }
1839 pe = &ptes[i]; 1839 pe = &ptes[i];
1840 if ((p = pe->part_table)->sys_ind) { 1840 p = pe->part_table;
1841 if (p->sys_ind) {
1841 p_start_pos = get_partition_start(pe); 1842 p_start_pos = get_partition_start(pe);
1842 1843
1843 if (last_p_start_pos > p_start_pos) { 1844 if (last_p_start_pos > p_start_pos) {