diff options
Diffstat (limited to 'examples/c/csv/db.c')
-rw-r--r-- | examples/c/csv/db.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/c/csv/db.c b/examples/c/csv/db.c index dc72f0d8..e138d5b8 100644 --- a/examples/c/csv/db.c +++ b/examples/c/csv/db.c @@ -1,7 +1,7 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 2005, 2012 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2015 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ @@ -10,7 +10,7 @@ #include "csv_local.h" #include "csv_extern.h" -static int compare_uint32(DB *, const DBT *, const DBT *); +static int compare_uint32(DB *, const DBT *, const DBT *, size_t *); /* * csv_env_init -- @@ -138,7 +138,7 @@ csv_secondary_open() { DB *sdb; DbField *f; - int ret, (*fcmp)(DB *, const DBT *, const DBT *); + int ret, (*fcmp)(DB *, const DBT *, const DBT *, size_t *); /* * Create secondary database handles. @@ -232,11 +232,13 @@ csv_secondary_close() * Compare two keys. */ static int -compare_uint32(DB *db_arg, const DBT *a_arg, const DBT *b_arg) +compare_uint32(DB *db_arg, const DBT *a_arg, const DBT *b_arg, size_t *locp) { u_int32_t a, b; - db_arg = db_arg; /* Quiet compiler. */ + /* Quiet compiler. */ + db_arg = db_arg; + locp = NULL; memcpy(&a, a_arg->data, sizeof(u_int32_t)); memcpy(&b, b_arg->data, sizeof(u_int32_t)); |