]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed gcc compile warning.
authorDennis Syrovatsky <dennis@tightvnc.com>
Mon, 22 May 2006 09:34:50 +0000 (09:34 +0000)
committerDennis Syrovatsky <dennis@tightvnc.com>
Mon, 22 May 2006 09:34:50 +0000 (09:34 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@576 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfb/SFTMsgReader.cxx
rfb/SFTMsgReader.h
rfb/SFileTransfer.cxx

index b88467bcb0ddd8f69320408d871c38bed560e36b..22787bf09698b41b587417f2a8e2a0cf8887cc22 100644 (file)
@@ -70,7 +70,7 @@ SFTMsgReader::readFileUploadRqst(unsigned int *pFilenameSize, char *pFilename,
   return readU8U16U32StringMsg(&compressedLevel, pFilenameSize, pPosition, pFilename);
 }
     
-void *
+char *
 SFTMsgReader::readFileUploadData(unsigned int *pDataSize, unsigned int *pModTime)
 {
   unsigned char compressedLevel = m_pIS->readU8();
index dff06a46d6e3dad9a1d78c017eb56aee340837ab..32ac869773b454c606df8788f735157e58983532 100644 (file)
@@ -46,7 +46,7 @@ namespace rfb {
     bool readFileUploadRqst(unsigned int *pFilenameSize, char *pFilename, 
                             unsigned int *pPosition);
     
-    void *readFileUploadData(unsigned int *pDataSize, unsigned int *pModTime);
+    char *readFileUploadData(unsigned int *pDataSize, unsigned int *pModTime);
 
     
     bool readFileCreateDirRqst(unsigned int *pDirNameSize, char *pDirName);
index 6f444e9bd5c7fb8ca3569eb50ccc3bb87ba26f3a..957e50b258ad87f4c9a024baf027b5b2ac796ea0 100644 (file)
@@ -174,7 +174,7 @@ SFileTransfer::processFileUploadData()
   unsigned int dataSize = 0;
   unsigned int modTime = 0;
 
-  void *pUploadData = m_reader.readFileUploadData(&dataSize, &modTime);
+  char *pUploadData = m_reader.readFileUploadData(&dataSize, &modTime);
 
   if (!m_bUploadStarted) {
       char reason[] = "Upload is impossible";
@@ -200,9 +200,6 @@ SFileTransfer::processFileUploadData()
       }
     }
   }
-  // FIXME: For the next line, gcc says:
-  //        warning: deleting `void *' is undefined
-  //        Perhaps it should not be `void *' at all.
   delete [] pUploadData;
   return true;
 }