Skip to content
Browse files

CDRIVER-157 - example.c doesn't compile in v0.6

 fix with NULL write concern parameter
  • Loading branch information...
1 parent ea89d8f commit 6166e8a12b4350e7ea10b9adcfb399a7c28fdad4 @gjmurakami-10gen gjmurakami-10gen committed Jul 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/examples/example.c
View
2 docs/examples/example.c
@@ -88,7 +88,7 @@ int main() {
}
/* Insert the sample BSON document. */
- if( mongo_insert( &conn, "test.records", &b ) != MONGO_OK ) {
+ if( mongo_insert( &conn, "test.records", &b, NULL ) != MONGO_OK ) {
printf( "FAIL: Failed to insert document with error %d\n", conn.err );
exit( 1 );
}

0 comments on commit 6166e8a

Please sign in to comment.
Something went wrong with that request. Please try again.