summaryrefslogtreecommitdiff
path: root/sbin/disklabel
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2018-07-03 06:37:46 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2018-07-03 06:37:46 +0000
commit81c070a35ea5fd371e5a2eec1c0b72f30c32da07 (patch)
tree84a6901a0684afa3264da7d65b76547451ff6710 /sbin/disklabel
parent0a60b4bf4e5756b7bc2dd0d0f2b181df960760dc (diff)
No need for print_unit to be a global.
ok otto@
Diffstat (limited to 'sbin/disklabel')
-rw-r--r--sbin/disklabel/disklabel.c6
-rw-r--r--sbin/disklabel/extern.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 9da13d150f4..7861f80b27c 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.227 2018/02/25 17:24:44 krw Exp $ */
+/* $OpenBSD: disklabel.c,v 1.228 2018/07/03 06:37:45 krw Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -87,7 +87,6 @@ int uidflag;
int verbose;
int quiet;
int donothing;
-char print_unit;
void makedisktab(FILE *, struct disklabel *);
void makelabel(char *, char *, struct disklabel *);
@@ -117,9 +116,10 @@ getphysmem(void)
int
main(int argc, char *argv[])
{
- int ch, f, error = 0;
FILE *t;
char *autotable = NULL;
+ int ch, f, error = 0;
+ char print_unit = '\0';
getphysmem();
diff --git a/sbin/disklabel/extern.h b/sbin/disklabel/extern.h
index b3a465157ae..b71fb1722e5 100644
--- a/sbin/disklabel/extern.h
+++ b/sbin/disklabel/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.30 2017/09/29 18:32:09 otto Exp $ */
+/* $OpenBSD: extern.h,v 1.31 2018/07/03 06:37:45 krw Exp $ */
/*
* Copyright (c) 2003 Theo de Raadt <deraadt@openbsd.org>
@@ -44,5 +44,4 @@ extern int aflag, dflag, uidflag;
extern int donothing;
extern int verbose;
extern int quiet;
-extern char print_unit;
extern struct disklabel lab;