summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/disks.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-21 04:34:12 +0000
committerphk <phk@FreeBSD.org>1995-05-21 04:34:12 +0000
commitf97e95c7b070492a1e15c3c836fcc2fba708f50e (patch)
tree1a4bf44f191011da6cad49ef141fa9ac94c4185f /usr.sbin/sade/disks.c
parent5edfd32aaa977c96870f006abc1b4d2cafa094f1 (diff)
downloadFreeBSD-src-f97e95c7b070492a1e15c3c836fcc2fba708f50e.zip
FreeBSD-src-f97e95c7b070492a1e15c3c836fcc2fba708f50e.tar.gz
label.c: wizard mode now returns;
disks.c: clrtobot() so that deleted stuff disappears. disks.c: offset is signed (for OnTrack diskmanager) system.c: don't setbuf(stdout,0), it's too slow.
Diffstat (limited to 'usr.sbin/sade/disks.c')
-rw-r--r--usr.sbin/sade/disks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index fd28106..399c812 100644
--- a/usr.sbin/sade/disks.c
+++ b/usr.sbin/sade/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.23 1995/05/20 10:33:02 jkh Exp $
+ * $Id: disks.c,v 1.24 1995/05/20 19:22:18 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -81,6 +81,7 @@ print_chunks(Disk *d)
attrset(A_NORMAL);
mvaddstr(0, 0, "Disk name:\t");
+ clrtobot();
attrset(A_REVERSE); addstr(d->name); attrset(A_NORMAL);
attrset(A_REVERSE); mvaddstr(0, 55, "Master Partition Editor"); attrset(A_NORMAL);
mvprintw(1, 0,
@@ -92,7 +93,7 @@ print_chunks(Disk *d)
for (i = 0, row = CHUNK_START_ROW; chunk_info[i]; i++, row++) {
if (i == current_chunk)
attrset(A_REVERSE);
- mvprintw(row, 2, "%10lu %10lu %10lu %8s %8d %8s %8d %6lx",
+ mvprintw(row, 2, "%10ld %10lu %10lu %8s %8d %8s %8d %6lx",
chunk_info[i]->offset, chunk_info[i]->size,
chunk_info[i]->end, chunk_info[i]->name,
chunk_info[i]->type, chunk_n[chunk_info[i]->type],
OpenPOWER on IntegriCloud