summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-10-25 03:39:31 +0000
committermarcel <marcel@FreeBSD.org>2004-10-25 03:39:31 +0000
commitf183d1d12b29c910159bf63c216cd80dd378c09c (patch)
treec63a7e4dbcc21dc831c5a67c004f13855c4a48a2 /sbin
parent8b8764c9994e9d55de88ea533484eb8fe110eb54 (diff)
downloadFreeBSD-src-f183d1d12b29c910159bf63c216cd80dd378c09c.zip
FreeBSD-src-f183d1d12b29c910159bf63c216cd80dd378c09c.tar.gz
Declare variables as static, like I intended.
Obtained from: Dan Markarian <markarian at apple dot com>
Diffstat (limited to 'sbin')
-rw-r--r--sbin/gpt/create.c2
-rw-r--r--sbin/gpt/destroy.c2
-rw-r--r--sbin/gpt/migrate.c2
-rw-r--r--sbin/gpt/recover.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/sbin/gpt/create.c b/sbin/gpt/create.c
index e02e8a6..47c47fd 100644
--- a/sbin/gpt/create.c
+++ b/sbin/gpt/create.c
@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include "map.h"
#include "gpt.h"
-int primary_only;
+static int primary_only;
static void
usage_create(void)
diff --git a/sbin/gpt/destroy.c b/sbin/gpt/destroy.c
index c6c295d..97cb217 100644
--- a/sbin/gpt/destroy.c
+++ b/sbin/gpt/destroy.c
@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include "map.h"
#include "gpt.h"
-int recoverable;
+static int recoverable;
static void
usage_destroy(void)
diff --git a/sbin/gpt/migrate.c b/sbin/gpt/migrate.c
index 497d3f4..1b438bd 100644
--- a/sbin/gpt/migrate.c
+++ b/sbin/gpt/migrate.c
@@ -51,7 +51,7 @@ __FBSDID("$FreeBSD$");
#define LABELSECTOR 1
#endif
-int keep, slice;
+static int keep, slice;
static void
usage_migrate(void)
diff --git a/sbin/gpt/recover.c b/sbin/gpt/recover.c
index 484ba0b..30c88fc 100644
--- a/sbin/gpt/recover.c
+++ b/sbin/gpt/recover.c
@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include "map.h"
#include "gpt.h"
-int recoverable;
+static int recoverable;
static void
usage_recover(void)
OpenPOWER on IntegriCloud