diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2015-11-18 15:10:44 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2015-11-18 15:10:44 +0000 |
commit | 4d2f9b97f2e80662a37a8490e41c58edc6525b67 (patch) | |
tree | 9aa635d59e58a914493ccaf47145cd161f4fc7c2 /sbin | |
parent | 020d2c76b774d1f4b19f7683a6f163fcc584251a (diff) |
g_flag does not need to be a global. Move it inside main().
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fdisk/fdisk.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 0b7f7be1f74..df4ee4e8a93 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fdisk.c,v 1.91 2015/11/18 02:32:56 krw Exp $ */ +/* $OpenBSD: fdisk.c,v 1.92 2015/11/18 15:10:43 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -41,7 +41,6 @@ static unsigned char builtin_mbr[] = { }; u_int32_t b_arg; -int g_flag; int y_flag; static void @@ -66,13 +65,12 @@ usage(void) exit(1); } - int main(int argc, char *argv[]) { ssize_t len; int ch, fd, error; - int i_flag = 0, e_flag = 0, f_flag = 0, u_flag = 0; + int e_flag = 0, f_flag = 0, g_flag = 0, i_flag = 0, u_flag = 0; int c_arg = 0, h_arg = 0, s_arg = 0; u_int32_t l_arg = 0; char *query; |