diff options
Diffstat (limited to 'examples/c/ex_rep_chan')
| -rw-r--r-- | examples/c/ex_rep_chan/rep_chan.c | 2 | ||||
| -rw-r--r-- | examples/c/ex_rep_chan/rep_chan.h | 2 | ||||
| -rw-r--r-- | examples/c/ex_rep_chan/rep_chan_util.c | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/examples/c/ex_rep_chan/rep_chan.c b/examples/c/ex_rep_chan/rep_chan.c index f5638264..1c661746 100644 --- a/examples/c/ex_rep_chan/rep_chan.c +++ b/examples/c/ex_rep_chan/rep_chan.c @@ -1,7 +1,7 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 2006, 2012 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2015 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ diff --git a/examples/c/ex_rep_chan/rep_chan.h b/examples/c/ex_rep_chan/rep_chan.h index 9eff740d..7f46b5ff 100644 --- a/examples/c/ex_rep_chan/rep_chan.h +++ b/examples/c/ex_rep_chan/rep_chan.h @@ -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$ */ diff --git a/examples/c/ex_rep_chan/rep_chan_util.c b/examples/c/ex_rep_chan/rep_chan_util.c index 07758152..b915e58d 100644 --- a/examples/c/ex_rep_chan/rep_chan_util.c +++ b/examples/c/ex_rep_chan/rep_chan_util.c @@ -1,7 +1,7 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 2006, 2012 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2015 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ @@ -622,7 +622,7 @@ open_dbp(dbenv, is_master, dbpp) { DB *dbp; u_int32_t flags; - int ret; + int ret, t_ret; if ((ret = db_create(dbpp, dbenv, 0)) != 0) return (ret); @@ -647,13 +647,13 @@ open_dbp(dbenv, is_master, dbpp) if ((ret = dbp->open(dbp, NULL, DATABASE, NULL, DB_BTREE, flags, 0)) != 0) { if (ret == ENOENT) { - printf( "No stock database yet available.\n"); - if ((ret = dbp->close(dbp, 0)) != 0) { - dbenv->err(dbenv, ret, - "DB->close"); + printf("No stock database yet available.\n"); + *dbpp = NULL; + if ((t_ret = dbp->close(dbp, 0)) != 0) { + ret = t_ret; + dbenv->err(dbenv, ret, "DB->close"); goto err; } - *dbpp = NULL; } if (ret == DB_REP_HANDLE_DEAD || ret == DB_LOCK_DEADLOCK) { |
