From 5b5e33eaf7afda11d555540e3f15ac2d49d245a6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 24 Jan 1996 17:00:12 +0000 Subject: [PATCH] Bug fix: missing argument to gw_log-call. --- util/gw-db.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/util/gw-db.c b/util/gw-db.c index dd3b2c1..6ee26ee 100644 --- a/util/gw-db.c +++ b/util/gw-db.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: gw-db.c,v $ - * Revision 1.4 1995/12/20 16:28:07 adam + * Revision 1.5 1996/01/24 17:00:12 adam + * Bug fix: missing argument to gw_log-call. + * + * Revision 1.4 1995/12/20 16:28:07 adam * Extra parameter block to gw_db_open. If block is 0 gw_db_open * returns NULL if lock couldn't be satisfied. * Minor changes in iso2709.c. @@ -326,7 +329,7 @@ GW_DB gw_db_open (const char *fname, int write_flag, int block) { if ((db->fd = open (fname, O_RDONLY)) == -1) { - gw_log (GW_LOG_WARN|GW_LOG_ERRNO," open %s", fname); + gw_log (GW_LOG_WARN|GW_LOG_ERRNO, mod, " open %s", fname); return gw_db_free (db); } } @@ -337,7 +340,7 @@ GW_DB gw_db_open (const char *fname, int write_flag, int block) r = lock_file (db->fd, 0, write_flag ? F_WRLCK : F_RDLCK); if (r == -1) { - gw_log (GW_LOG_WARN|GW_LOG_ERRNO, "flock %s", fname); + gw_log (GW_LOG_WARN|GW_LOG_ERRNO, mod, "flock %s", fname); close (db->fd); return gw_db_free (db); } -- 1.7.10.4