28
28
typedef struct _msg_t {
29
29
char * string ;
30
30
struct _msg_t * next ;
31
- } msg_t ;
31
+ } diagnostics_msg_t ;
32
32
33
33
typedef struct {
34
- msg_t * test_info ;
35
- msg_t * error_info ;
34
+ diagnostics_msg_t * test_info ;
35
+ diagnostics_msg_t * error_info ;
36
36
bson_mutex_t mutex ;
37
37
} test_diagnostics_t ;
38
38
@@ -41,7 +41,7 @@ static test_diagnostics_t diagnostics;
41
41
static char *
42
42
test_diagnostics_error_string (bson_error_t * error )
43
43
{
44
- msg_t * msg_iter = NULL ;
44
+ diagnostics_msg_t * msg_iter = NULL ;
45
45
test_diagnostics_t * td = & diagnostics ;
46
46
47
47
mcommon_string_append_t str ;
111
111
test_diagnostics_reset (void )
112
112
{
113
113
test_diagnostics_t * td = & diagnostics ;
114
- msg_t * iter , * iter_tmp ;
114
+ diagnostics_msg_t * iter , * iter_tmp ;
115
115
116
116
LL_FOREACH_SAFE (td -> test_info , iter , iter_tmp )
117
117
{
@@ -144,14 +144,14 @@ _test_diagnostics_add(bool fail, const char *fmt, ...)
144
144
{
145
145
test_diagnostics_t * td = & diagnostics ;
146
146
va_list args ;
147
- msg_t * msg = NULL ;
147
+ diagnostics_msg_t * msg = NULL ;
148
148
char * msg_string ;
149
149
150
150
va_start (args , fmt );
151
151
msg_string = bson_strdupv_printf (fmt , args );
152
152
va_end (args );
153
153
154
- msg = bson_malloc0 (sizeof (msg_t ));
154
+ msg = bson_malloc0 (sizeof (diagnostics_msg_t ));
155
155
msg -> string = msg_string ;
156
156
157
157
bson_mutex_lock (& td -> mutex );
0 commit comments