summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/chunk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-08 02:08:33 +0000
committerphk <phk@FreeBSD.org>1995-05-08 02:08:33 +0000
commit021b1e61da72a756bc8f87b139948c264ab03d85 (patch)
tree49a69fca0481e33683fc291aae3110bec91f9897 /lib/libdisk/chunk.c
parentb2a9651ad8912e10ed56deb485129ad3d59e3ebe (diff)
downloadFreeBSD-src-021b1e61da72a756bc8f87b139948c264ab03d85.zip
FreeBSD-src-021b1e61da72a756bc8f87b139948c264ab03d85.tar.gz
Recognize slice type #6 as dos
handle OnTrack Disk manager correctly.
Diffstat (limited to 'lib/libdisk/chunk.c')
-rw-r--r--lib/libdisk/chunk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c
index 77bcc00..54630be 100644
--- a/lib/libdisk/chunk.c
+++ b/lib/libdisk/chunk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: chunk.c,v 1.9 1995/05/07 01:25:22 jkh Exp $
+ * $Id: chunk.c,v 1.10 1995/05/07 01:28:16 jkh Exp $
*
*/
@@ -173,7 +173,7 @@ Insert_Chunk(struct chunk *c2, u_long offset, u_long size, char *name, chunk_e t
}
int
-Add_Chunk(struct disk *d, u_long offset, u_long size, char *name, chunk_e type,
+Add_Chunk(struct disk *d, long offset, u_long size, char *name, chunk_e type,
int subtype, u_long flags)
{
struct chunk *c1,*c2,ct;
@@ -264,7 +264,7 @@ Print_Chunk(struct chunk *c1,int offset)
for(;i<offset;i++) putchar('-');
putchar('>');
for(;i<10;i++) putchar(' ');
- printf("%p %8lu %8lu %8lu %-8s %-8s 0x%02x ",
+ printf("%p %8ld %8lu %8lu %-8s %-8s 0x%02x ",
c1, c1->offset, c1->size, c1->end, c1->name,
chunk_n[c1->type],c1->subtype);
if (c1->flags & CHUNK_ALIGN) putchar('=');
OpenPOWER on IntegriCloud