Skip to content

Commit 43644f8

Browse files
authored
CDRIVER-4754 add const modifier to _mongoc_write_error_handle_labels param (#1515)
1 parent da1f98c commit 43644f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libmongoc/src/mongoc/mongoc-error-private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void
7474
_mongoc_write_error_handle_labels (bool cmd_ret,
7575
const bson_error_t *cmd_err,
7676
bson_t *reply,
77-
mongoc_server_description_t *sd);
77+
const mongoc_server_description_t *sd);
7878

7979
bool
8080
_mongoc_error_is_shutdown (bson_error_t *error);

src/libmongoc/src/mongoc/mongoc-error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void
103103
_mongoc_write_error_handle_labels (bool cmd_ret,
104104
const bson_error_t *cmd_err,
105105
bson_t *reply,
106-
mongoc_server_description_t *sd)
106+
const mongoc_server_description_t *sd)
107107
{
108108
bson_error_t error;
109109

0 commit comments

Comments
 (0)