Project

General

Profile

Bug #3700 ยป cvt-wmissing-variable-declarations.diff

Ed Schouten, 2013-04-08 03:09 PM

View differences:

cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c (Arbeitskopie)
47 47
 *
48 48
 * The value is only valid during a call to ctf_load.
49 49
 */
50
char *curfile;
50
static char *curfile;
51 51

  
52 52
#define	CTF_BUF_CHUNK_SIZE	(64 * 1024)
53 53
#define	RES_BUF_CHUNK_SIZE	(64 * 1024)
cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c (Arbeitskopie)
54 54
static tdesc_t *hash_table[BUCKETS];
55 55
static tdesc_t *name_table[BUCKETS];
56 56

  
57
list_t *typedbitfldmems;
57
static list_t *typedbitfldmems;
58 58

  
59 59
static void reset(void);
60 60
static jmp_buf	resetbuf;
cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c (Arbeitskopie)
37 37
#include "traverse.h"
38 38
#include "memory.h"
39 39

  
40
int (*tddescenders[])(tdesc_t *, tdtrav_data_t *);
41
tdtrav_cb_f tdnops[];
40
static int (*tddescenders[])(tdesc_t *, tdtrav_data_t *);
41
static tdtrav_cb_f tdnops[];
42 42

  
43 43
void
44 44
tdtrav_init(tdtrav_data_t *tdtd, int *vgenp, tdtrav_cb_f *firstops,
......
111 111
	return (-1);
112 112
}
113 113

  
114
tdtrav_cb_f tdnops[] = {
114
static tdtrav_cb_f tdnops[] = {
115 115
	NULL,
116 116
	NULL,			/* intrinsic */
117 117
	NULL,			/* pointer */
......
128 128
	NULL			/* restrict */
129 129
};
130 130

  
131
int (*tddescenders[])(tdesc_t *, tdtrav_data_t *) = {
131
static int (*tddescenders[])(tdesc_t *, tdtrav_data_t *) = {
132 132
	NULL,
133 133
	NULL,			/* intrinsic */
134 134
	tdtrav_plain,		/* pointer */
cddl/contrib/opensolaris/tools/ctf/cvt/util.c (Arbeitskopie)
249 249
	return (tdp->t_name == NULL ? "(anon)" : tdp->t_name);
250 250
}
251 251

  
252
char	*watch_address = NULL;
253
int	watch_length = 0;
252
static char	*watch_address = NULL;
253
static int	watch_length = 0;
254 254

  
255 255
void
256 256
watch_set(void *addr, int len)
    (1-1/1)