summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-31 14:49:20 +0000
committerjkh <jkh@FreeBSD.org>1996-07-31 14:49:20 +0000
commit1ebf76b0c3270a3b1295c107b68690cc233f5d6a (patch)
treec9010f44ccd6456d5864fdf3615e526801faca5a /usr.sbin
parent09d9898dd8b000fe674706b15ed636554f667771 (diff)
downloadFreeBSD-src-1ebf76b0c3270a3b1295c107b68690cc233f5d6a.zip
FreeBSD-src-1ebf76b0c3270a3b1295c107b68690cc233f5d6a.tar.gz
Add a required save/restore
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/disks.c4
-rw-r--r--usr.sbin/sysinstall/disks.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index 20682f5..cf0ccb2 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.58 1996/07/31 09:29:25 jkh Exp $
+ * $Id: disks.c,v 1.59 1996/07/31 10:55:19 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -274,6 +274,7 @@ diskPartition(Device *dev, Disk *d)
char *val, tmp[20], *cp;
int size, subtype;
chunk_e partitiontype;
+ WINDOW *save = savescr();
snprintf(tmp, 20, "%d", chunk_info[current_chunk]->size);
val = msgGetInput(tmp, "Please specify the size for new FreeBSD partition in blocks\n"
@@ -303,6 +304,7 @@ diskPartition(Device *dev, Disk *d)
record_chunks(d);
}
}
+ restorescr(save);
}
break;
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index 20682f5..cf0ccb2 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/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.58 1996/07/31 09:29:25 jkh Exp $
+ * $Id: disks.c,v 1.59 1996/07/31 10:55:19 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -274,6 +274,7 @@ diskPartition(Device *dev, Disk *d)
char *val, tmp[20], *cp;
int size, subtype;
chunk_e partitiontype;
+ WINDOW *save = savescr();
snprintf(tmp, 20, "%d", chunk_info[current_chunk]->size);
val = msgGetInput(tmp, "Please specify the size for new FreeBSD partition in blocks\n"
@@ -303,6 +304,7 @@ diskPartition(Device *dev, Disk *d)
record_chunks(d);
}
}
+ restorescr(save);
}
break;
OpenPOWER on IntegriCloud