summaryrefslogtreecommitdiff
path: root/sbin/disklabel
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-09-10 06:56:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-09-10 06:56:48 +0000
commit9041e426abcfec99dc206d9028f1e86b336dcee6 (patch)
treec54c2955fbdc425e3145a5d299cf2cd156378c6e /sbin/disklabel
parentc4912a54eb8b9138390cf027e0fb2076f6207ed1 (diff)
pass correct args to editor()
Diffstat (limited to 'sbin/disklabel')
-rw-r--r--sbin/disklabel/disklabel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index f4209806e7d..b67a611bb14 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.53 1998/06/07 05:00:23 deraadt Exp $ */
+/* $OpenBSD: disklabel.c,v 1.54 1998/09/10 06:56:47 deraadt Exp $ */
/* $NetBSD: disklabel.c,v 1.30 1996/03/14 19:49:24 ghudson Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$OpenBSD: disklabel.c,v 1.53 1998/06/07 05:00:23 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: disklabel.c,v 1.54 1998/09/10 06:56:47 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -127,7 +127,7 @@ struct disklabel *makebootarea __P((char *, struct disklabel *, int));
void display __P((FILE *, struct disklabel *));
void display_partition __P((FILE *, struct disklabel *, int, char, int));
int width_partition __P((struct disklabel *, int));
-int editor __P((struct disklabel *, int));
+int editor __P((struct disklabel *, int, char *));
int edit __P((struct disklabel *, int));
int editit __P((void));
char *skip __P((char *));
@@ -261,7 +261,7 @@ main(argc, argv)
usage();
if ((lp = readlabel(f)) == NULL)
exit(1);
- error = editor(lp, f);
+ error = editor(lp, f, dkname);
break;
case READ:
if (argc != 1)