summaryrefslogtreecommitdiff
path: root/examples/c/ex_heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_heap.c')
-rw-r--r--examples/c/ex_heap.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/c/ex_heap.c b/examples/c/ex_heap.c
index 990c9365..474be909 100644
--- a/examples/c/ex_heap.c
+++ b/examples/c/ex_heap.c
@@ -1,7 +1,7 @@
/*
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*
@@ -24,7 +24,7 @@
#ifndef lint
static const char copyright[] =
- "Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved.\n";
+ "Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.\n";
#endif
#define BUFFER_LEN 30 /* Buffer size to hold data */
@@ -66,7 +66,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
#include <unistd.h>
#endif
-int compare_int(DB *, const DBT *, const DBT *);
+int compare_int(DB *, const DBT *, const DBT *, size_t *);
int delete_recs __P((DB *, DB_ENV *, int));
int file_size __P((DB *, DBTYPE, int *));
int generate_data __P((char [], int, int));
@@ -622,13 +622,15 @@ err:
}
int
-compare_int(dbp, a, b)
+compare_int(dbp, a, b, locp)
DB *dbp;
const DBT *a, *b;
+ size_t *locp;
{
int ai, bi;
dbp = NULL;
+ locp = NULL;
/*
* Returns: