aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/tools
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2013-04-19 19:38:39 +0000
committerEd Schouten <ed@FreeBSD.org>2013-04-19 19:38:39 +0000
commitc0794a841df1a3ea4cad6cba1710f910d4360106 (patch)
tree45ae0213431c2e386bc15168e2e44575179c9bbc /cddl/contrib/opensolaris/tools
parent7b796c403982c93a4caaf98cf665a88e4ac84c11 (diff)
downloadsrc-c0794a841df1a3ea4cad6cba1710f910d4360106.tar.gz
src-c0794a841df1a3ea4cad6cba1710f910d4360106.zip
Fix -Wmissing-variable-declarations compiler warnings.
Notes
Notes: svn path=/head/; revision=249656
Diffstat (limited to 'cddl/contrib/opensolaris/tools')
-rw-r--r--cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c2
-rw-r--r--cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c2
-rw-r--r--cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c8
-rw-r--r--cddl/contrib/opensolaris/tools/ctf/cvt/util.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c b/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c
index 55dd39e3a900..77b49895a571 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c
@@ -47,7 +47,7 @@
*
* The value is only valid during a call to ctf_load.
*/
-char *curfile;
+static char *curfile;
#define CTF_BUF_CHUNK_SIZE (64 * 1024)
#define RES_BUF_CHUNK_SIZE (64 * 1024)
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c b/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c
index 1dca82a0d3b2..21a0149861be 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c
@@ -54,7 +54,7 @@ static int faketypenumber = 100000000;
static tdesc_t *hash_table[BUCKETS];
static tdesc_t *name_table[BUCKETS];
-list_t *typedbitfldmems;
+static list_t *typedbitfldmems;
static void reset(void);
static jmp_buf resetbuf;
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c b/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c
index feb9908638af..2d6d74bc78b1 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c
@@ -37,8 +37,8 @@
#include "traverse.h"
#include "memory.h"
-int (*tddescenders[])(tdesc_t *, tdtrav_data_t *);
-tdtrav_cb_f tdnops[];
+static int (*tddescenders[])(tdesc_t *, tdtrav_data_t *);
+static tdtrav_cb_f tdnops[];
void
tdtrav_init(tdtrav_data_t *tdtd, int *vgenp, tdtrav_cb_f *firstops,
@@ -111,7 +111,7 @@ tdtrav_assert(tdesc_t *node __unused, tdesc_t **nodep __unused, void *private __
return (-1);
}
-tdtrav_cb_f tdnops[] = {
+static tdtrav_cb_f tdnops[] = {
NULL,
NULL, /* intrinsic */
NULL, /* pointer */
@@ -128,7 +128,7 @@ tdtrav_cb_f tdnops[] = {
NULL /* restrict */
};
-int (*tddescenders[])(tdesc_t *, tdtrav_data_t *) = {
+static int (*tddescenders[])(tdesc_t *, tdtrav_data_t *) = {
NULL,
NULL, /* intrinsic */
tdtrav_plain, /* pointer */
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/util.c b/cddl/contrib/opensolaris/tools/ctf/cvt/util.c
index 0f36fa02decf..82dfe63ad579 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/util.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/util.c
@@ -249,8 +249,8 @@ tdesc_name(tdesc_t *tdp)
return (tdp->t_name == NULL ? "(anon)" : tdp->t_name);
}
-char *watch_address = NULL;
-int watch_length = 0;
+static char *watch_address = NULL;
+static int watch_length = 0;
void
watch_set(void *addr, int len)