Skip to content

Commit 2fd2042

Browse files
authored
changes assignment to equality check (#744)
* remove redefinition of mongoc_timeout_t
1 parent e100f20 commit 2fd2042

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libmongoc/src/mongoc/mongoc-timeout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
typedef struct _mongoc_timeout_t {
2121
bool is_set;
2222
int64_t timeout_ms;
23-
} mongoc_timeout_t;
23+
};
2424

2525
int64_t
2626
mongoc_timeout_get_timeout_ms (const mongoc_timeout_t *timeout)

src/libmongoc/tests/test-mongoc-versioned-api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ _test_mongoc_server_api_setters (void)
4747
{
4848
mongoc_server_api_t *api = mongoc_server_api_new (MONGOC_SERVER_API_V1);
4949

50-
BSON_ASSERT (api->version = MONGOC_SERVER_API_V1);
50+
BSON_ASSERT (api->version == MONGOC_SERVER_API_V1);
5151
BSON_ASSERT (!api->strict_set);
5252
BSON_ASSERT (!api->deprecation_errors_set);
5353
BSON_ASSERT (!api->strict);

0 commit comments

Comments
 (0)