diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-05 11:29:26 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-05 11:29:26 +0000 |
commit | 39cc2512acbcf56ffbf87e3d26afc0450ca37de9 (patch) | |
tree | 69bde184c07add3dfd3ad7479bf72b5bdcb584d6 /compat/store.c | |
parent | ff788884bcaeeb59579ff88f51b90e57c1f8c3be (diff) | |
download | gdbm-39cc2512acbcf56ffbf87e3d26afc0450ca37de9.tar.gz gdbm-39cc2512acbcf56ffbf87e3d26afc0450ca37de9.tar.bz2 |
Rewrite using ndbm interface.
Diffstat (limited to 'compat/store.c')
-rw-r--r-- | compat/store.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compat/store.c b/compat/store.c index 7f21b9d..dd6ee78 100644 --- a/compat/store.c +++ b/compat/store.c @@ -19,10 +19,7 @@ /* Include system configuration before all else. */ #include "autoconf.h" - -#include "gdbmdefs.h" -#include "extern.h" - +#include "dbm-priv.h" /* Add a new element to the database. CONTENT is keyed by KEY. The file on disk is updated to reflect the structure of the new database before @@ -31,5 +28,5 @@ int store (datum key, datum content) { - return gdbm_store (_gdbm_file, key, content, GDBM_REPLACE); + return dbm_store (_gdbm_file, key, content, DBM_REPLACE); } |