]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Remove unused marshalling for SRV_NET_NAME_VALIDATE.
authorGünther Deschner <gd@samba.org>
Fri, 7 Mar 2008 22:50:00 +0000 (23:50 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 7 Mar 2008 22:51:34 +0000 (23:51 +0100)
Guenther

source/include/rpc_srvsvc.h
source/rpc_parse/parse_srv.c

index dd67c48529ba6c8bdae0e29b1c95717b7c5af132..3ea55bd167946b475db61e6d25e0692c6f6744d8 100644 (file)
@@ -75,20 +75,6 @@ typedef struct net_srv_disk_enum {
 
 /***************************/
 
-typedef struct  {
-       UNISTR2 *servername;
-       UNISTR2 sharename;
-       uint32 type;
-       uint32 flags;
-       WERROR status;
-} SRV_Q_NET_NAME_VALIDATE;
-
-typedef struct  {
-       WERROR status;
-} SRV_R_NET_NAME_VALIDATE;
-
-/***************************/
-
 /* oops - this is going to take up a *massive* amount of stack. */
 /* the UNISTR2s already have 1024 uint16 chars in them... */
 
index 44777db8af5c9a0b7f330c8d62035e3d6ddaf699..b4cc08748b899099e3df368bdfcb4e290935cf90 100644 (file)
@@ -2693,64 +2693,6 @@ bool srv_io_r_net_disk_enum(const char *desc, SRV_R_NET_DISK_ENUM *r_n, prs_stru
        return True;
 }
 
-/*******************************************************************
- Reads or writes a structure.
- ********************************************************************/
-
-bool srv_io_q_net_name_validate(const char *desc, SRV_Q_NET_NAME_VALIDATE *q_n, prs_struct *ps, int depth)
-{
-       if (q_n == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "srv_io_q_net_name_validate");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_pointer("servername", ps, depth, (void*)&q_n->servername,
-                       sizeof(UNISTR2), (PRS_POINTER_CAST)prs_io_unistr2))
-               return False;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!smb_io_unistr2("", &q_n->sharename, True, ps, depth))
-               return False;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_uint32("type", ps, depth, &q_n->type))
-               return False;
-
-       if(!prs_uint32("flags", ps, depth, &q_n->flags))
-               return False;
-
-       return True;
-}
-
-/*******************************************************************
- Reads or writes a structure.
- ********************************************************************/
-
-bool srv_io_r_net_name_validate(const char *desc, SRV_R_NET_NAME_VALIDATE *r_n, prs_struct *ps, int depth)
-{
-       if (r_n == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "srv_io_r_net_name_validate");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_werror("status", ps, depth, &r_n->status))
-               return False;
-
-       return True;
-}
-
 /*******************************************************************
  Reads or writes a structure.
 ********************************************************************/