diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-18 22:30:27 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-19 05:38:06 +0200 |
commit | f5e9ed1ea965827f29fe0fa77a32e09737e51b45 (patch) | |
tree | e8d6d817d775413f29885416b8aecd8e385146d2 /lib/ntdb/doc | |
parent | 16cc345d4f84367e70e133200f7aa335c2aae8c6 (diff) | |
download | samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.tar.gz samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.tar.bz2 samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.zip |
ntdb: remove ntdb_error()
It was a hack to make compatibility easier. Since we're not doing that,
it can go away: all callers must use the return value now.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/ntdb/doc')
-rw-r--r-- | lib/ntdb/doc/TDB_porting.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ntdb/doc/TDB_porting.txt b/lib/ntdb/doc/TDB_porting.txt index 8df137416d..34e536ffcb 100644 --- a/lib/ntdb/doc/TDB_porting.txt +++ b/lib/ntdb/doc/TDB_porting.txt @@ -9,8 +9,7 @@ Interface differences between TDB and NTDB. - ntdb functions return NTDB_SUCCESS (ie 0) on success, and a negative error on failure, whereas tdb functions returned 0 on success, and -1 on failure. tdb then used tdb_error() to determine the error; - this is also supported in ntdb to ease backwards compatibility, - though the other form is preferred. + this API is nasty if we ever want to support threads, so is not supported. - ntdb's ntdb_fetch() returns an error, tdb's returned the data directly (or tdb_null, and you were supposed to check tdb_error() to find out why). |