1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-13 12:25:53 +01:00

Fix for non-gcc compilers

This commit is contained in:
dan
2000-03-30 04:52:43 +00:00
parent b40d52edd6
commit 5730c765c3
3 changed files with 17 additions and 9 deletions

View File

@@ -710,7 +710,7 @@ WMSendConnectionData(WMConnection *cPtr, WMData *data) /*FOLD00*/
{
int bytes, pos, len, totalTransfer;
TimeoutData *tPtr = &cPtr->sendTimeout;
const void *dataBytes;
const unsigned char *dataBytes;
wassertrv(cPtr->state!=WCNotConnected && cPtr->state!=WCListening, -1);
wassertrv(cPtr->state!=WCInProgress && cPtr->state!=WCFailed, -1);
@@ -733,7 +733,7 @@ WMSendConnectionData(WMConnection *cPtr, WMData *data) /*FOLD00*/
while (WMGetBagItemCount(cPtr->outputQueue) > 0) {
data = WMGetFromBag(cPtr->outputQueue, 0);
dataBytes = WMDataBytes(data);
dataBytes = (const unsigned char *)WMDataBytes(data);
len = WMGetDataLength(data);
pos = cPtr->bufPos; /* where we're left last time */
while(pos < len) {