projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cscvs to tla changeset 116
[onak.git]
/
keydb_db3.c
diff --git
a/keydb_db3.c
b/keydb_db3.c
index 309a29747d81082e4bb834fd9c61707fc1007724..b3441b7edaa21db571f594f9a010de58b50ffca9 100644
(file)
--- a/
keydb_db3.c
+++ b/
keydb_db3.c
@@
-5,7
+5,7
@@
*
* Copyright 2002 Project Purple
*
*
* Copyright 2002 Project Purple
*
- * $Id: keydb_db3.c,v 1.2
1 2003/10/03 23:02:04
noodles Exp $
+ * $Id: keydb_db3.c,v 1.2
2 2003/10/10 16:57:27
noodles Exp $
*/
#include <assert.h>
*/
#include <assert.h>
@@
-139,6
+139,15
@@
void initdb(void)
} else {
logthing(LOGTHING_ERROR, "Couldn't open num_keydb: %s",
strerror(errno));
} else {
logthing(LOGTHING_ERROR, "Couldn't open num_keydb: %s",
strerror(errno));
+ numdb = fopen(buf, "w");
+ if (numdb != NULL) {
+ fprintf(numdb, "%d", numdbs);
+ fclose(numdb);
+ } else {
+ logthing(LOGTHING_ERROR,
+ "Couldn't write num_keydb: %s",
+ strerror(errno));
+ }
}
dbconns = malloc(sizeof (DB *) * numdbs);
}
dbconns = malloc(sizeof (DB *) * numdbs);