Skip to content

Commit

Permalink
CDRIVER-157 - example.c doesn't compile in v0.6
Browse files Browse the repository at this point in the history
 fix with NULL write concern parameter
  • Loading branch information
gjmurakami-10gen committed Jul 28, 2012
1 parent ea89d8f commit 6166e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/example.c
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 6166e8a

Please sign in to comment.