projects
/
egate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84081f9
)
Bug fix: missing argument to gw_log-call.
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 24 Jan 1996 17:00:12 +0000
(17:00 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 24 Jan 1996 17:00:12 +0000
(17:00 +0000)
util/gw-db.c
patch
|
blob
|
history
diff --git
a/util/gw-db.c
b/util/gw-db.c
index
dd3b2c1
..
6ee26ee
100644
(file)
--- a/
util/gw-db.c
+++ b/
util/gw-db.c
@@
-45,7
+45,10
@@
* Europagate, 1995
*
* $Log: gw-db.c,v $
* 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.
* 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)
{
{
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);
}
}
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)
{
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);
}
close (db->fd);
return gw_db_free (db);
}