From: VMware, Inc <> Date: Wed, 18 Sep 2013 03:29:44 +0000 (-0700) Subject: HGFS: Clean up server send packet callback X-Git-Tag: 2013.09.16-1328054~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e8095e66632b9a29c89add36ec469d00a8ba6bf;p=thirdparty%2Fopen-vm-tools.git HGFS: Clean up server send packet callback While cleaning up the usage of the HGFS packet abstraction it meant that the arguments to the HGFS server packet send callback could be cleaned up. The arguments for the packet buffer and size are now unused as this too arguments are extracted from the HGFS packet object. Therefore, remove the unused arguments from the send callback. Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/hgfsServer/hgfsServer.c b/open-vm-tools/lib/hgfsServer/hgfsServer.c index 1b670cbb6..86a7f2f0a 100644 --- a/open-vm-tools/lib/hgfsServer/hgfsServer.c +++ b/open-vm-tools/lib/hgfsServer/hgfsServer.c @@ -4590,8 +4590,8 @@ HgfsPacketSend(HgfsPacket *packet, // IN/OUT: Hgfs Packet if (transportSession->state == HGFS_SESSION_STATE_OPEN) { ASSERT(transportSession->type == HGFS_SESSION_TYPE_REGULAR); result = transportSession->channelCbTable->send(transportSession->transportData, - packet, packetOut, - packetOutLen, flags); + packet, + flags); } if (notificationNeeded) { diff --git a/open-vm-tools/lib/hgfsServerManagerGuest/hgfsChannelGuestBd.c b/open-vm-tools/lib/hgfsServerManagerGuest/hgfsChannelGuestBd.c index 52c023693..72c990533 100644 --- a/open-vm-tools/lib/hgfsServerManagerGuest/hgfsChannelGuestBd.c +++ b/open-vm-tools/lib/hgfsServerManagerGuest/hgfsChannelGuestBd.c @@ -60,8 +60,6 @@ static Bool HgfsChannelGuestBdInit(HgfsServerSessionCallbacks *serverCBTable, static void HgfsChannelGuestBdExit(HgfsGuestConn *data); static Bool HgfsChannelGuestBdSend(void *data, HgfsPacket *packet, - char *buffer, - size_t bufferLen, HgfsSendFlags flags); static Bool HgfsChannelGuestBdReceive(HgfsGuestConn *data, char const *packetIn, @@ -633,8 +631,6 @@ HgfsChannelGuestBdInvalidateInactiveSessions(HgfsGuestConn *connData) // IN: co static Bool HgfsChannelGuestBdSend(void *conn, // IN: our connection data HgfsPacket *packet, // IN/OUT: Hgfs Packet - char *buffer, // IN: unused reply in hgfs packet - size_t bufferLen, // IN: unused reply len in hgfs packet HgfsSendFlags flags) // IN: Flags to say how to process { HgfsGuestConn *connData = conn; diff --git a/open-vm-tools/lib/include/hgfsServer.h b/open-vm-tools/lib/include/hgfsServer.h index 40956b3d0..e0f3974a7 100644 --- a/open-vm-tools/lib/include/hgfsServer.h +++ b/open-vm-tools/lib/include/hgfsServer.h @@ -137,8 +137,6 @@ typedef struct HgfsServerConfig { typedef Bool (*HgfsChannelSendFunc)(void *opaqueSession, HgfsPacket *packet, - char *buffer, - size_t bufferLen, HgfsSendFlags flags); typedef void * (*HgfsChannelMapVirtAddrFunc)(uint64 pa, uint32 size, void **context); typedef void (*HgfsChannelUnmapVirtAddrFunc)(void **context);