diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-02-24 10:39:59 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-02-24 10:39:59 +1030 |
commit | a6e0ef87d25734760fe77b87a9fd11db56760955 (patch) | |
tree | a30e6d7d6ccb396cdb3a44a90007c97d8b067b61 /lib/tdb/common | |
parent | 452b4a5a6efeecfb5c83475f1375ddc25bcddfbe (diff) | |
download | samba-a6e0ef87d25734760fe77b87a9fd11db56760955.tar.gz samba-a6e0ef87d25734760fe77b87a9fd11db56760955.tar.bz2 samba-a6e0ef87d25734760fe77b87a9fd11db56760955.zip |
tdb: make _tdb_transaction_cancel static.
Now tdb_open() calls tdb_transaction_cancel() instead of
_tdb_transaction_cancel, we can make it static.
Signed-off-by: Rusty Russell<rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb/common')
-rw-r--r-- | lib/tdb/common/tdb_private.h | 1 | ||||
-rw-r--r-- | lib/tdb/common/transaction.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h index 26d2cf55fa..093dd9a137 100644 --- a/lib/tdb/common/tdb_private.h +++ b/lib/tdb/common/tdb_private.h @@ -244,7 +244,6 @@ int tdb_ofs_read(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); int tdb_ofs_write(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); int tdb_lock_record(struct tdb_context *tdb, tdb_off_t off); int tdb_unlock_record(struct tdb_context *tdb, tdb_off_t off); -int _tdb_transaction_cancel(struct tdb_context *tdb, int ltype); int tdb_rec_read(struct tdb_context *tdb, tdb_off_t offset, struct tdb_record *rec); int tdb_rec_write(struct tdb_context *tdb, tdb_off_t offset, struct tdb_record *rec); int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct tdb_record *rec); diff --git a/lib/tdb/common/transaction.c b/lib/tdb/common/transaction.c index 9a15efce53..07935c9492 100644 --- a/lib/tdb/common/transaction.c +++ b/lib/tdb/common/transaction.c @@ -578,7 +578,7 @@ static int transaction_sync(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t /* ltype is F_WRLCK after prepare. */ -int _tdb_transaction_cancel(struct tdb_context *tdb, int ltype) +static int _tdb_transaction_cancel(struct tdb_context *tdb, int ltype) { int i, ret = 0; |