diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
---|---|---|
committer | <> | 2015-03-17 16:26:24 +0000 |
commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /examples/c/getting_started/gettingstarted_common.c | |
parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
download | berkeleydb-master.tar.gz |
Diffstat (limited to 'examples/c/getting_started/gettingstarted_common.c')
-rw-r--r-- | examples/c/getting_started/gettingstarted_common.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/c/getting_started/gettingstarted_common.c b/examples/c/getting_started/gettingstarted_common.c index 86faa1c0..f388b13d 100644 --- a/examples/c/getting_started/gettingstarted_common.c +++ b/examples/c/getting_started/gettingstarted_common.c @@ -1,7 +1,7 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 2004, 2012 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2015 Oracle and/or its affiliates. All rights reserved. */ #include "gettingstarted_common.h" @@ -49,9 +49,11 @@ get_item_name(DB *dbp, const DBT *pkey, const DBT *pdata, DBT *skey) /* Opens a database */ int -open_database(DB **dbpp, const char *file_name, - const char *program_name, FILE *error_file_pointer, - int is_secondary) +open_database(DB **dbpp, /* The DB handle that we are opening */ + const char *file_name, /* The file in which the db lives */ + const char *program_name, /* Name of the program */ + FILE *error_file_pointer, + int is_secondary) { DB *dbp; /* For convenience */ u_int32_t open_flags; @@ -173,8 +175,8 @@ initialize_stockdbs(STOCK_DBS *my_stock) my_stock->inventory_dbp = NULL; my_stock->vendor_dbp = NULL; my_stock->itemname_sdbp = NULL; - my_stock->vendor_db_name = NULL; my_stock->inventory_db_name = NULL; + my_stock->vendor_db_name = NULL; my_stock->itemname_db_name = NULL; } |