summaryrefslogtreecommitdiff
path: root/source3/torture/nbio.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-04-18 18:36:17 +0000
committerRichard Sharpe <sharpe@samba.org>2002-04-18 18:36:17 +0000
commitba309aaffac945fd8f2ecbb4d068e5bb7283a032 (patch)
treea18e94f042382b97c931675e10671309357e8251 /source3/torture/nbio.c
parentc0a991943044e038b78f796fb35d7625eb843d85 (diff)
downloadsamba-ba309aaffac945fd8f2ecbb4d068e5bb7283a032.tar.gz
samba-ba309aaffac945fd8f2ecbb4d068e5bb7283a032.tar.bz2
samba-ba309aaffac945fd8f2ecbb4d068e5bb7283a032.zip
Back out the wrong changes I made yesterday ...
(This used to be commit 6d52aa1fc892b48d72a790800ee00d6d7bdc4844)
Diffstat (limited to 'source3/torture/nbio.c')
-rw-r--r--source3/torture/nbio.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/source3/torture/nbio.c b/source3/torture/nbio.c
index bf9305f8e8..2d519b40ba 100644
--- a/source3/torture/nbio.c
+++ b/source3/torture/nbio.c
@@ -137,7 +137,7 @@ void nb_unlink(char *fname)
void nb_createx(char *fname,
- unsigned create_options, unsigned create_disposition, int handle, int no_err)
+ unsigned create_options, unsigned create_disposition, int handle)
{
int fd, i;
uint32 desired_access;
@@ -157,7 +157,7 @@ void nb_createx(char *fname,
if (fd == -1 && handle != -1) {
printf("ERROR: cli_nt_create_full failed for %s - %s\n",
fname, cli_errstr(c));
- if (!no_err) exit(1);
+ exit(1);
}
if (fd != -1 && handle == -1) {
printf("ERROR: cli_nt_create_full succeeded for %s\n", fname);
@@ -206,15 +206,10 @@ void nb_readx(int handle, int offset, int size, int ret_size)
children[nbio_id].bytes_in += ret_size;
}
-void nb_close(int handle, int no_err)
+void nb_close(int handle)
{
int i;
- if (no_err) {
- i = ne_find_handle(handle);
- if (i < 0) return;
- }
- else
- i = find_handle(handle);
+ i = find_handle(handle);
if (!cli_close(c, ftable[i].fd)) {
printf("(%d) close failed on handle %d\n", line_count, handle);
exit(1);