Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9ad30a4

Browse files
shubhamhiircsanchez97
authored andcommitted
Fix AIX build
1 parent 8b8faf5 commit 9ad30a4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/libmongoc/tests/unified/test-diagnostics.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
typedef struct _msg_t {
2929
char *string;
3030
struct _msg_t *next;
31-
} msg_t;
31+
} diagnostics_msg_t;
3232

3333
typedef struct {
34-
msg_t *test_info;
35-
msg_t *error_info;
34+
diagnostics_msg_t *test_info;
35+
diagnostics_msg_t *error_info;
3636
bson_mutex_t mutex;
3737
} test_diagnostics_t;
3838

@@ -41,7 +41,7 @@ static test_diagnostics_t diagnostics;
4141
static char *
4242
test_diagnostics_error_string(bson_error_t *error)
4343
{
44-
msg_t *msg_iter = NULL;
44+
diagnostics_msg_t *msg_iter = NULL;
4545
test_diagnostics_t *td = &diagnostics;
4646

4747
mcommon_string_append_t str;
@@ -111,7 +111,7 @@ void
111111
test_diagnostics_reset(void)
112112
{
113113
test_diagnostics_t *td = &diagnostics;
114-
msg_t *iter, *iter_tmp;
114+
diagnostics_msg_t *iter, *iter_tmp;
115115

116116
LL_FOREACH_SAFE(td->test_info, iter, iter_tmp)
117117
{
@@ -144,14 +144,14 @@ _test_diagnostics_add(bool fail, const char *fmt, ...)
144144
{
145145
test_diagnostics_t *td = &diagnostics;
146146
va_list args;
147-
msg_t *msg = NULL;
147+
diagnostics_msg_t *msg = NULL;
148148
char *msg_string;
149149

150150
va_start(args, fmt);
151151
msg_string = bson_strdupv_printf(fmt, args);
152152
va_end(args);
153153

154-
msg = bson_malloc0(sizeof(msg_t));
154+
msg = bson_malloc0(sizeof(diagnostics_msg_t));
155155
msg->string = msg_string;
156156

157157
bson_mutex_lock(&td->mutex);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /