summaryrefslogtreecommitdiff
path: root/sbin/fdisk/part.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-29 18:39:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-29 18:39:24 +0000
commit6b78b159d102a0d9c9569fdfe01402c43ed808db (patch)
treec52077c3e099acdf85db980a2c821320dbcc7463 /sbin/fdisk/part.c
parentef45b046d50271fb77ae73c50cf2bb20badc690f (diff)
spaces
Diffstat (limited to 'sbin/fdisk/part.c')
-rw-r--r--sbin/fdisk/part.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c
index 2e187024d17..812a9cea521 100644
--- a/sbin/fdisk/part.c
+++ b/sbin/fdisk/part.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: part.c,v 1.35 2003/07/02 21:44:57 deraadt Exp $ */
+/* $OpenBSD: part.c,v 1.36 2003/07/29 18:38:35 deraadt Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -142,21 +142,20 @@ PRT_printall(void)
{
int i, idrows;
- idrows = ((sizeof(part_types)/sizeof(struct part_type))+3)/4;
+ idrows = ((sizeof(part_types)/sizeof(struct part_type))+3)/4;
printf("Choose from the following Partition id values:\n");
for (i = 0; i < idrows; i++) {
- printf("%02X %s %02X %s %02X %s"
- , part_types[i ].type, part_types[i ].sname
- , part_types[i+idrows ].type, part_types[i+idrows ].sname
- , part_types[i+idrows*2].type, part_types[i+idrows*2].sname
- );
- if ((i+idrows*3) < (sizeof(part_types)/sizeof(struct part_type))) {
- printf(" %02X %s\n"
- , part_types[i+idrows*3].type, part_types[i+idrows*3].sname );
- }
- else
- printf( "\n" );
+ printf("%02X %s %02X %s %02X %s",
+ part_types[i].type, part_types[i].sname,
+ part_types[i+idrows].type, part_types[i+idrows].sname,
+ part_types[i+idrows*2].type, part_types[i+idrows*2].sname);
+ if ((i+idrows*3) < (sizeof(part_types)/sizeof(struct part_type))) {
+ printf(" %02X %s\n",
+ part_types[i+idrows*3].type,
+ part_types[i+idrows*3].sname);
+ } else
+ printf( "\n" );
}
}
@@ -289,10 +288,10 @@ PRT_print(int num, prt_t *partn, char *units)
printf("%c%1d: %.2X %4d %3d %2d - %4d %3d %2d [%12d:%12.0f%s] %s\n",
(partn->flag == 0x80)?'*':' ',
num, partn->id,
- partn->scyl, partn->shead, partn->ssect,
+ partn->scyl, partn->shead, partn->ssect,
partn->ecyl, partn->ehead, partn->esect,
partn->bs, size,
- unit_types[i].abbr,
+ unit_types[i].abbr,
PRT_ascii_id(partn->id));
}
}