From fa325e9b42b0bdfb48857d1958d9fb7ceac55151 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Fri, 10 Jan 2020 14:44:21 +0000 Subject: Trivial changes: whitespace and modes. Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross --- src/libdisk/disk.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/libdisk/disk.c') diff --git a/src/libdisk/disk.c b/src/libdisk/disk.c index 3428c467..0230d329 100644 --- a/src/libdisk/disk.c +++ b/src/libdisk/disk.c @@ -16,16 +16,16 @@ mkwidth(Disk *disk) /* * Discover the disk geometry by various sleazeful means. - * + * * First, if there is a partition table in sector 0, * see if all the partitions have the same end head - * and sector; if so, we'll assume that that's the + * and sector; if so, we'll assume that that's the * right count. - * + * * If that fails, we'll try looking at the geometry that the ATA * driver supplied, if any, and translate that as a - * BIOS might. - * + * BIOS might. + * * If that too fails, which should only happen on a SCSI * disk with no currently defined partitions, we'll try * various common (h, s) pairs used by BIOSes when faking @@ -252,7 +252,7 @@ opensd(Disk *disk) } } - + disk->size = disk->secs * disk->secsize; if(disk->size <= 0) { strcpy(disk->part, ""); @@ -345,4 +345,3 @@ opendisk(char *disk, int rdonly, int noctl) d->type = Tfile; return openfile(d); } - -- cgit v1.2.3