summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-08-02 05:50:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:08 -0500
commita0a9a301d258ffdd6e1f35a9d4d32c555237556c (patch)
tree5373d673bcdbdc5d8a6b5ba697fa7a7d400ba9a0 /source3/smbd
parentb352a4532afe91cbf885e6cf99a7e1971c05ad1d (diff)
downloadsamba-a0a9a301d258ffdd6e1f35a9d4d32c555237556c.tar.gz
samba-a0a9a301d258ffdd6e1f35a9d4d32c555237556c.tar.bz2
samba-a0a9a301d258ffdd6e1f35a9d4d32c555237556c.zip
r24119: Convert reply_exit to the new API
(This used to be commit d4d550aa2ba20d704d2ab1265732b03405e8819c)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c2
-rw-r--r--source3/smbd/reply.c10
2 files changed, 5 insertions, 7 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index ab2f205ebe..4acdb177a6 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -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},
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 385a47bbf3..ec27450593 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -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;
}
/****************************************************************************