return readU8U16U32StringMsg(&compressedLevel, pFilenameSize, pPosition, pFilename);
}
-void *
+char *
SFTMsgReader::readFileUploadData(unsigned int *pDataSize, unsigned int *pModTime)
{
unsigned char compressedLevel = m_pIS->readU8();
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);
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";
}
}
}
- // FIXME: For the next line, gcc says:
- // warning: deleting `void *' is undefined
- // Perhaps it should not be `void *' at all.
delete [] pUploadData;
return true;
}