* 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.
{
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);
}
}
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);
}