Fix -Wmissing-variable-declarations compiler warnings.

References:
https://www.illumos.org/issues/3700
This commit is contained in:
Ed Schouten 2013-04-19 19:38:39 +00:00
parent 7b796c4039
commit c0794a841d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249656
4 changed files with 8 additions and 8 deletions

View file

@ -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)

View file

@ -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;

View file

@ -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 */

View file

@ -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)