From 9a6388179b9c4e13238ed91aebaca9b15e02408f Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 10 Feb 2004 11:33:35 +0000 Subject: Convert libcli routines to return NTSTATUS instead of BOOL. Again, the only users are smbclient and smbtorture. (This used to be commit 54cb508c78e5c1faa3ade46b46b165983c880d10) --- source4/torture/nbio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/torture/nbio.c') diff --git a/source4/torture/nbio.c b/source4/torture/nbio.c index 49688d6354..65584b1852 100644 --- a/source4/torture/nbio.c +++ b/source4/torture/nbio.c @@ -118,7 +118,7 @@ void nb_setup(struct cli_state *cli) void nb_unlink(const char *fname) { - if (!cli_unlink(c->tree, fname)) { + if (NT_STATUS_IS_ERR(cli_unlink(c->tree, fname))) { #if NBDEBUG printf("(%d) unlink %s failed (%s)\n", line_count, fname, cli_errstr(c)); @@ -201,7 +201,7 @@ void nb_close(int handle) { int i; i = find_handle(handle); - if (!cli_close(c->tree, ftable[i].fd)) { + if (NT_STATUS_IS_ERR(cli_close(c->tree, ftable[i].fd))) { printf("(%d) close failed on handle %d\n", line_count, handle); exit(1); } @@ -210,7 +210,7 @@ void nb_close(int handle) void nb_rmdir(const char *fname) { - if (!cli_rmdir(c->tree, fname)) { + if (NT_STATUS_IS_ERR(cli_rmdir(c->tree, fname))) { printf("ERROR: rmdir %s failed (%s)\n", fname, cli_errstr(c->tree)); exit(1); @@ -219,7 +219,7 @@ void nb_rmdir(const char *fname) void nb_rename(const char *old, const char *new) { - if (!cli_rename(c->tree, old, new)) { + if (NT_STATUS_IS_ERR(cli_rename(c->tree, old, new))) { printf("ERROR: rename %s %s failed (%s)\n", old, new, cli_errstr(c->tree)); exit(1); -- cgit