Skip to content
Permalink
Browse files

Use %zd for ssize_t printing in OSS.cpp.

  • Loading branch information...
mkrautz committed Nov 1, 2015
1 parent 671598b commit f32343d59770cb154fea1e19e2cc9cf0255bdbde
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/mumble/OSS.cpp
@@ -249,7 +249,7 @@ void OSSInput::run() {
int len = static_cast<int>(iMicLength * iMicChannels * sizeof(short));
ssize_t l = read(fd, buffer, len);
if (l != len) {
qWarning("OSSInput: Read %ld", l);
qWarning("OSSInput: Read %zd", l);
break;
}
addMic(buffer, iMicLength);
@@ -355,15 +355,15 @@ void OSSOutput::run() {
if (stillRun) {
ssize_t l = write(fd, mbuffer, blocklen);
if (l != blocklen) {
qWarning("OSSOutput: Write %ld != %ld", l, blocklen);
qWarning("OSSOutput: Write %zd != %zd", l, blocklen);
break;
}
} else {
while (! mix(mbuffer, iOutputBlock) && bRunning)
this->msleep(20);
ssize_t l = write(fd, mbuffer, blocklen);
if (l != blocklen) {
qWarning("OSSOutput: Write %ld != %ld", l, blocklen);
qWarning("OSSOutput: Write %zd != %zd", l, blocklen);
break;
}
}

0 comments on commit f32343d

Please sign in to comment.
You can’t perform that action at this time.