r24119: Convert reply_exit to the new API
authorVolker Lendecke <vlendec@samba.org>
Thu, 2 Aug 2007 05:50:40 +0000 (05:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:08 +0000 (12:29 -0500)
source/smbd/process.c
source/smbd/reply.c

index ab2f205ebebe32a75311da1bc85096689e82084c..4acdb177a6c1d10a47e1dfed2d8d5a30ac32b8d6 100644 (file)
@@ -705,7 +705,7 @@ static const struct smb_message_struct {
 /* 0x0e */ { "SMBctemp",reply_ctemp,NULL,AS_USER },
 /* 0x0f */ { "SMBmknew",reply_mknew,NULL,AS_USER},
 /* 0x10 */ { "SMBcheckpath",NULL,reply_checkpath,AS_USER},
-/* 0x11 */ { "SMBexit",reply_exit,NULL,DO_CHDIR},
+/* 0x11 */ { "SMBexit",NULL,reply_exit,DO_CHDIR},
 /* 0x12 */ { "SMBlseek",reply_lseek,NULL,AS_USER},
 /* 0x13 */ { "SMBlockread",reply_lockread,NULL,AS_USER},
 /* 0x14 */ { "SMBwriteunlock",reply_writeunlock,NULL,AS_USER},
index 385a47bbf3559c7129cd1bc5f231b7e9f64acb13..ec27450593ea9d73105afb1aed8c9b85233ac1c2 100644 (file)
@@ -3462,20 +3462,18 @@ int reply_flush(connection_struct *conn, char *inbuf,char *outbuf, int size, int
  conn POINTER CAN BE NULL HERE !
 ****************************************************************************/
 
-int reply_exit(connection_struct *conn, 
-              char *inbuf,char *outbuf, int dum_size, int dum_buffsize)
+void reply_exit(connection_struct *conn, struct smb_request *req)
 {
-       int outsize;
        START_PROFILE(SMBexit);
 
-       file_close_pid(SVAL(inbuf,smb_pid),SVAL(inbuf,smb_uid));
+       file_close_pid(req->smbpid, req->vuid);
 
-       outsize = set_message(inbuf,outbuf,0,0,False);
+       reply_outbuf(req, 0, 0);
 
        DEBUG(3,("exit\n"));
 
        END_PROFILE(SMBexit);
-       return(outsize);
+       return;
 }
 
 /****************************************************************************