From 566b5cccc9ee5bfe515a452cbed95fec34bfd074 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 20 Dec 1995 16:27:18 +0000 Subject: [PATCH] Extra parameter block to gw_db_open. --- include/gw-db.h | 7 +++++-- kernel/eti.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/include/gw-db.h b/include/gw-db.h index ca8008c..d422a56 100644 --- a/include/gw-db.h +++ b/include/gw-db.h @@ -46,7 +46,10 @@ * Europagate, 1995 * * $Log: gw-db.h,v $ - * Revision 1.3 1995/05/16 09:39:39 adam + * Revision 1.4 1995/12/20 16:27:18 adam + * Extra parameter block to gw_db_open. + * + * Revision 1.3 1995/05/16 09:39:39 adam * LICENSE. * * Revision 1.2 1995/04/17 09:33:05 adam @@ -66,7 +69,7 @@ int gw_db_lookup (GW_DB db, const char *name, int name_length, void **buf, size_t *count); int gw_db_insert (GW_DB db, const char *name, int name_length, const void *buf, size_t count); -GW_DB gw_db_open (const char *fname, int write_flag); +GW_DB gw_db_open (const char *fname, int write_flag, int block); int gw_db_close (GW_DB db); int gw_db_no_ent (GW_DB db); diff --git a/kernel/eti.c b/kernel/eti.c index a6843ca..c69e67d 100644 --- a/kernel/eti.c +++ b/kernel/eti.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: eti.c,v $ - * Revision 1.16 1995/07/11 11:49:11 adam + * Revision 1.17 1995/12/20 16:27:24 adam + * Extra parameter block to gw_db_open. + * + * Revision 1.16 1995/07/11 11:49:11 adam * LINE_MAX renamed to STR_LINE_MAX. * * Revision 1.15 1995/07/03 12:59:28 adam @@ -292,7 +295,7 @@ int main (int argc, char **argv) exit (1); } gw_log (GW_LOG_STAT, module, "Mail from %s", from_str); - user_db = gw_db_open ("user.db", 1); + user_db = gw_db_open ("user.db", 1, 1); r = gw_db_lookup (user_db, from_str, strlen(from_str), &user_info, &info_length); -- 1.7.10.4