From dc6e0cedfcdd7ca0d9b7a13ecbc3e8520ddcc8f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Mon, 23 Mar 2009 12:45:09 +0100 Subject: [PATCH] s3-dcerpc: remove unused smb_io_rpc_hdr_fault. Guenther Signed-off-by: Simo Sorce --- source3/include/proto.h | 1 - source3/rpc_parse/parse_rpc.c | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index a998becfbe..35229c836b 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -5092,7 +5092,6 @@ bool smb_io_rpc_hdr_ba(const char *desc, RPC_HDR_BA *rpc, prs_struct *ps, int de void init_rpc_hdr_req(RPC_HDR_REQ *hdr, uint32 alloc_hint, uint16 opnum); bool smb_io_rpc_hdr_req(const char *desc, RPC_HDR_REQ *rpc, prs_struct *ps, int depth); bool smb_io_rpc_hdr_resp(const char *desc, RPC_HDR_RESP *rpc, prs_struct *ps, int depth); -bool smb_io_rpc_hdr_fault(const char *desc, RPC_HDR_FAULT *rpc, prs_struct *ps, int depth); void init_rpc_hdr_auth(RPC_HDR_AUTH *rai, uint8 auth_type, uint8 auth_level, uint8 auth_pad_len, diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c index 441a00b1ea..a671c711b4 100644 --- a/source3/rpc_parse/parse_rpc.c +++ b/source3/rpc_parse/parse_rpc.c @@ -442,26 +442,6 @@ bool smb_io_rpc_hdr_resp(const char *desc, RPC_HDR_RESP *rpc, prs_struct *ps, in return True; } -/******************************************************************* - Reads or writes an RPC_HDR_FAULT structure. -********************************************************************/ - -bool smb_io_rpc_hdr_fault(const char *desc, RPC_HDR_FAULT *rpc, prs_struct *ps, int depth) -{ - if (rpc == NULL) - return False; - - prs_debug(ps, depth, desc, "smb_io_rpc_hdr_fault"); - depth++; - - if(!prs_dcerpc_status("status ", ps, depth, &rpc->status)) - return False; - if(!prs_uint32("reserved", ps, depth, &rpc->reserved)) - return False; - - return True; -} - /******************************************************************* Inits an RPC_HDR_AUTH structure. ********************************************************************/ -- 2.34.1