summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-15 18:33:43 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-15 18:33:43 +0000
commit8e4ab747b02207671203d40cd2a78692da78faef (patch)
treec4ebd704ba8a88f67513a61f4e4e5e11e78d6132 /source4/libcli/raw
parentefacfb37fc0d7310c72c40bfed4b52ecaf365b11 (diff)
downloadsamba-8e4ab747b02207671203d40cd2a78692da78faef.tar.gz
samba-8e4ab747b02207671203d40cd2a78692da78faef.tar.bz2
samba-8e4ab747b02207671203d40cd2a78692da78faef.zip
more fixes from the IRIX compiler (thanks herb!)
(This used to be commit 4cf3839b727c77a727abb558bd9473119a092913)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/clitree.c2
-rw-r--r--source4/libcli/raw/rawfileinfo.c2
-rw-r--r--source4/libcli/raw/rawnegotiate.c2
3 files changed, 1 insertions, 5 deletions
diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c
index a088ae7023..1e9104308e 100644
--- a/source4/libcli/raw/clitree.c
+++ b/source4/libcli/raw/clitree.c
@@ -121,7 +121,6 @@ NTSTATUS smb_tree_connect_recv(struct cli_request *req, TALLOC_CTX *mem_ctx, uni
case RAW_TCON_TCONX:
ZERO_STRUCT(parms->tconx.out);
- CLI_CHECK_MIN_WCT(req, 0); /* this depends on the protocol level */
parms->tconx.out.cnum = SVAL(req->in.hdr, HDR_TID);
if (req->in.wct >= 4) {
parms->tconx.out.options = SVAL(req->in.vwv, VWV(3));
@@ -245,7 +244,6 @@ NTSTATUS cli_tree_full_connection(struct cli_tree **ret_tree,
mem_ctx = talloc_init("tcon");
if (!mem_ctx) {
- cli_tree_close(tree);
return NT_STATUS_NO_MEMORY;
}
diff --git a/source4/libcli/raw/rawfileinfo.c b/source4/libcli/raw/rawfileinfo.c
index 70121025d0..41fe1225cc 100644
--- a/source4/libcli/raw/rawfileinfo.c
+++ b/source4/libcli/raw/rawfileinfo.c
@@ -146,7 +146,6 @@ static NTSTATUS smb_raw_info_backend(struct cli_session *session,
case RAW_FILEINFO_STREAM_INFO:
case RAW_FILEINFO_STREAM_INFORMATION:
- FINFO_CHECK_MIN_SIZE(0);
ofs = 0;
parms->stream_info.out.num_streams = 0;
parms->stream_info.out.streams = NULL;
@@ -228,7 +227,6 @@ static NTSTATUS smb_raw_info_backend(struct cli_session *session,
return NT_STATUS_OK;
case RAW_FILEINFO_UNIX_LINK:
- FINFO_CHECK_MIN_SIZE(0);
cli_blob_pull_string(session, mem_ctx, blob,
&parms->unix_link_info.out.link_dest, 0, 4, STR_UNICODE);
return NT_STATUS_OK;
diff --git a/source4/libcli/raw/rawnegotiate.c b/source4/libcli/raw/rawnegotiate.c
index 78b2e00706..04941f6118 100644
--- a/source4/libcli/raw/rawnegotiate.c
+++ b/source4/libcli/raw/rawnegotiate.c
@@ -22,7 +22,7 @@
#include "includes.h"
static const struct {
- int prot;
+ enum protocol_types prot;
const char *name;
} prots[] = {
{PROTOCOL_CORE,"PC NETWORK PROGRAM 1.0"},