]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
HGFS: clean up of server Send packet part II
authorVMware, Inc <>
Wed, 18 Sep 2013 03:30:00 +0000 (20:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:13:29 +0000 (22:13 -0700)
Now remove the two unused reply and reply size arguments
that are in the HgfsPacket object from the server internal send
function.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/hgfsServer/hgfsServer.c

index 86a7f2f0af061ab28ed906be77b0bc4ce48912dc..cd4dc430bd59a0c4ebf7aa88858af30724aac909 100644 (file)
@@ -350,8 +350,6 @@ static HgfsInternalStatus
 HgfsServerTransportGetDefaultSession(HgfsTransportSessionInfo *transportSession,
                                      HgfsSessionInfo **session);
 static Bool HgfsPacketSend(HgfsPacket *packet,
-                           char *packetOut,
-                           size_t packetOutLen,
                            HgfsTransportSessionInfo *transportSession,
                            HgfsSendFlags flags);
 
@@ -3153,8 +3151,7 @@ HgfsServerCompleteRequest(HgfsInternalStatus status,   // IN: Status of the requ
       goto exit;
    }
 
-   if (!HgfsPacketSend(input->packet, reply, replySize,
-                       input->transportSession, 0)) {
+   if (!HgfsPacketSend(input->packet, input->transportSession, 0)) {
       /* Send failed. Drop the reply. */
       Log("%s: Error sending reply\n", __FUNCTION__);
    }
@@ -4575,8 +4572,6 @@ HgfsNotifyPacketSent(void)
 
 static Bool
 HgfsPacketSend(HgfsPacket *packet,            // IN/OUT: Hgfs Packet
-               char *packetOut,               // IN: output buffer
-               size_t packetOutLen,           // IN: packet size
                HgfsTransportSessionInfo *transportSession,      // IN: session info
                HgfsSendFlags flags)           // IN: flags for how to process
 {
@@ -8418,7 +8413,7 @@ HgfsServerDirWatchEvent(HgfsSharedFolderHandle sharedFolder, // IN: shared folde
       goto exit;
    }
 
-   if (!HgfsPacketSend(packet, (char *)packetHeader,  sizeNeeded, session->transportSession, 0)) {
+   if (!HgfsPacketSend(packet, session->transportSession, 0)) {
       LOG(4, ("%s: failed to send notification to the host\n", __FUNCTION__));
       goto exit;
    }