]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
HGFS: Clean up of server packet send
authorVMware, Inc <>
Wed, 18 Sep 2013 03:26:09 +0000 (20:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:06:58 +0000 (22:06 -0700)
Make packet the send function local to the only file where it is used.

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

index fa0fdb5ad83052d2025ef91e204f629cd6656495..71ab60626b895fe3a27421441e5531ae049d0fd9 100644 (file)
@@ -349,6 +349,11 @@ static void HgfsFreeSearchDirents(HgfsSearch *search);
 static HgfsInternalStatus
 HgfsServerTransportGetDefaultSession(HgfsTransportSessionInfo *transportSession,
                                      HgfsSessionInfo **session);
+static Bool HgfsPacketSend(HgfsPacket *packet,
+                           char *packetOut,
+                           size_t packetOutLen,
+                           HgfsTransportSessionInfo *transportSession,
+                           HgfsSendFlags flags);
 
 /*
  * Opcode handlers
@@ -4567,7 +4572,7 @@ HgfsNotifyPacketSent(void)
  *----------------------------------------------------------------------------
  */
 
-Bool
+static Bool
 HgfsPacketSend(HgfsPacket *packet,            // IN/OUT: Hgfs Packet
                char *packetOut,               // IN: output buffer
                size_t packetOutLen,           // IN: packet size
index a282a378433c4090b0319f24ffc3f0101436e6e4..6088b1fbcc137577e67f00c00bcf7d695795396c 100644 (file)
@@ -643,15 +643,6 @@ char*
 HgfsServerGetTargetRelativePath(const char* source,    // IN: source file name
                                 const char* target);   // IN: target file name
 
-
-
-Bool
-HgfsPacketSend(HgfsPacket *packet,            // IN/OUT: Hgfs Packet
-               char *packetOut,               // IN: Output packet buffer
-               size_t packetOutLen,           // IN: Output packet size
-               HgfsTransportSessionInfo *transportSession,      // IN: session info
-               HgfsSendFlags flags);          // IN: flags how to send
-
 Bool
 HgfsServerCheckOpenFlagsForShare(HgfsFileOpenInfo *openInfo, // IN: Hgfs file handle
                                  HgfsOpenFlags *flags);      // IN/OUT: open mode