diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 15:24:49 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 15:24:49 +0000 |
| commit | dab0e708089d79858114b54d378493f7f503bba5 (patch) | |
| tree | 1bb16270d044d9e5ffbf8617e60216e32a07e9eb /usr.sbin | |
| parent | 240995227c9158e420e3886cc342bba3a8f948c8 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/sade/label.c | 11 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/label.c | 11 |
2 files changed, 2 insertions, 20 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index ac59ee1ba31b..82359213366d 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.50 1996/06/08 09:08:41 jkh Exp $ + * $Id: label.c,v 1.51 1996/07/09 03:07:51 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -250,14 +250,6 @@ new_part(char *mpoint, Boolean newfs, u_long size) ret->newfs = newfs; if (!size) return ret; - for (target = size; target; target--) { - for (divisor = 4096 ; divisor > 1023; divisor--) { - if (!(target % divisor)) { - sprintf(ret->newfs_cmd + strlen(ret->newfs_cmd), " -u %ld",divisor); - return ret; - } - } - } return ret; } @@ -723,7 +715,6 @@ diskLabel(char *str) if (type != PART_SWAP) { /* This is needed to tell the newfs -u about the size */ tmp->private_data = new_part(p->mountpoint, p->newfs, tmp->size); - tmp->private_free = safe_free; safe_free(p); } else diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index ac59ee1ba31b..82359213366d 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/sysinstall/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.50 1996/06/08 09:08:41 jkh Exp $ + * $Id: label.c,v 1.51 1996/07/09 03:07:51 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -250,14 +250,6 @@ new_part(char *mpoint, Boolean newfs, u_long size) ret->newfs = newfs; if (!size) return ret; - for (target = size; target; target--) { - for (divisor = 4096 ; divisor > 1023; divisor--) { - if (!(target % divisor)) { - sprintf(ret->newfs_cmd + strlen(ret->newfs_cmd), " -u %ld",divisor); - return ret; - } - } - } return ret; } @@ -723,7 +715,6 @@ diskLabel(char *str) if (type != PART_SWAP) { /* This is needed to tell the newfs -u about the size */ tmp->private_data = new_part(p->mountpoint, p->newfs, tmp->size); - tmp->private_free = safe_free; safe_free(p); } else |
