]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Trivial: Fix warning
authorVMware, Inc <>
Mon, 26 Apr 2010 18:04:49 +0000 (11:04 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 27 Apr 2010 03:48:51 +0000 (20:48 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/vmhgfs/page.c

index 5ec0bf094c2405a7b342fe780f5e53f2d76f0b05..944ef1116684a39cb490854d1970439279ab9d0c 100644 (file)
@@ -169,8 +169,10 @@ HgfsDoRead(HgfsHandle handle,             // IN:  Handle for this file
    char *payload = NULL;
    HgfsStatus replyStatus;
    char *buf;
+   uint32 count;
    ASSERT(numEntries == 1);
-   uint32 count = dataPacket[0].len;
+
+   count = dataPacket[0].len;
 
    req = HgfsGetNewRequest();
    if (!req) {
@@ -363,8 +365,10 @@ HgfsDoWrite(HgfsHandle handle,             // IN: Handle for this file
    uint32 reqSize;
    HgfsStatus replyStatus;
    char *buf;
+   uint32 count;
    ASSERT(numEntries == 1);
-   uint32 count = dataPacket[0].len;
+
+   count = dataPacket[0].len;
 
    req = HgfsGetNewRequest();
    if (!req) {