fix two typos
This commit is contained in:
parent
bba2de6fae
commit
a61acd45e9
4
c/bdb.c
4
c/bdb.c
|
@ -304,7 +304,7 @@ s48_value scsh_bdb_env_lock_get(s48_value senv_handle, s48_value slocker_id,
|
||||||
S48_GC_UNPROTECT();
|
S48_GC_UNPROTECT();
|
||||||
|
|
||||||
if ((lock = (DB_LOCK *) calloc(1, sizeof(DB_LOCK))) == NULL)
|
if ((lock = (DB_LOCK *) calloc(1, sizeof(DB_LOCK))) == NULL)
|
||||||
s48_raise_out_of_memory();
|
s48_raise_out_of_memory_error();
|
||||||
|
|
||||||
res = dbenv->lock_get(dbenv, locker_id, flags, &object,
|
res = dbenv->lock_get(dbenv, locker_id, flags, &object,
|
||||||
lock_mode, lock);
|
lock_mode, lock);
|
||||||
|
@ -369,7 +369,7 @@ s48_value scsh_bdb_dbrename(s48_value senv_handle, s48_value stxnid,
|
||||||
u_int32_t flags;
|
u_int32_t flags;
|
||||||
S48_DECLARE_GC_PROTECT(6);
|
S48_DECLARE_GC_PROTECT(6);
|
||||||
|
|
||||||
S48_GC_UNPROTECT_6(senv_handle, stxnid, sfile, sdatabase, snewname, sflags);
|
S48_GC_PROTECT_6(senv_handle, stxnid, sfile, sdatabase, snewname, sflags);
|
||||||
dbenv = scsh_extract_dbenv(senv_handle);
|
dbenv = scsh_extract_dbenv(senv_handle);
|
||||||
txnid = EXTRACT_OPTIONAL_TXNID(stxnid);
|
txnid = EXTRACT_OPTIONAL_TXNID(stxnid);
|
||||||
file = s48_extract_string(sfile);
|
file = s48_extract_string(sfile);
|
||||||
|
|
Loading…
Reference in New Issue