Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=setup.git;a=commitdiff;h=0e2046095ee2197f193015f72b5a11d36992558f

commit 0e2046095ee2197f193015f72b5a11d36992558f
Author: James Buren <[email protected]>
Date:   Fri Mar 9 06:17:21 2012 -0600

fixups for sector 2048 check

diff --git a/src/plugins/checkdisk.c b/src/plugins/checkdisk.c
index 36f528a..252f851 100644
--- a/src/plugins/checkdisk.c
+++ b/src/plugins/checkdisk.c
@@ -51,8 +51,8 @@ char *desc()
static
int starts_on_sector_2048(const char *path)
{
-       PedDevice *device = 0;
-       PedDisk *disk = 0;
+       PedDevice *device = NULL;
+       PedDisk *disk = NULL;
PedPartition *partition;
int rv = 0;

@@ -72,7 +72,7 @@ int starts_on_sector_2048(const char *path)
goto bail;
}

-       for( partition = ped_disk_next_partition(disk,0) ; partition && 
partition->num != 1 ; partition = ped_disk_next_partition(disk,partition) )
+       for( partition = ped_disk_next_partition(disk,NULL) ; partition && 
partition->num == -1 ; partition = ped_disk_next_partition(disk,partition) )
;

if(!partition || partition->geom.start != 2048)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to