Adjust to ObjFW changes
This commit is contained in:
parent
ec17d44407
commit
fefe0e570d
1 changed files with 3 additions and 7 deletions
|
@ -358,7 +358,7 @@ locking_callback(int mode, int n, const char *file, int line)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)lowlevelWriteBuffer: (const void *)buffer
|
- (size_t)lowlevelWriteBuffer: (const void *)buffer
|
||||||
length: (size_t)length
|
length: (size_t)length
|
||||||
{
|
{
|
||||||
int bytesWritten;
|
int bytesWritten;
|
||||||
|
@ -375,11 +375,7 @@ locking_callback(int mode, int n, const char *file, int line)
|
||||||
bytesWritten: 0
|
bytesWritten: 0
|
||||||
errNo: 0];
|
errNo: 0];
|
||||||
|
|
||||||
if ((size_t)bytesWritten != length)
|
return bytesWritten;
|
||||||
@throw [OFWriteFailedException exceptionWithObject: self
|
|
||||||
requestedLength: length
|
|
||||||
bytesWritten: bytesWritten
|
|
||||||
errNo: 0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (bool)hasDataInReadBuffer
|
- (bool)hasDataInReadBuffer
|
||||||
|
|
Reference in a new issue