mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-14 09:34:32 -04:00
Use braces
This commit is contained in:
@@ -101,10 +101,11 @@ bool Fifo::writePacket(ZMPacket &packet) {
|
||||
Debug(1, "Writing header ZM %u %" PRId64, packet.packet.size, packet.pts);
|
||||
// Going to write a brief header
|
||||
if ( fprintf(outfile, "ZM %u %" PRId64 "\n", packet.packet.size, packet.pts) < 0 ) {
|
||||
if (errno != EAGAIN)
|
||||
if (errno != EAGAIN) {
|
||||
Error("Problem during writing: %s", strerror(errno));
|
||||
else
|
||||
} else {
|
||||
Debug(1, "Problem during writing: %s", strerror(errno));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -150,10 +151,11 @@ bool Fifo::write(uint8_t *data, size_t bytes, int64_t pts) {
|
||||
// Going to write a brief header
|
||||
Debug(1, "Writing header ZM %lu %" PRId64, bytes, pts);
|
||||
if ( fprintf(outfile, "ZM %lu %" PRId64 "\n", bytes, pts) < 0 ) {
|
||||
if (errno != EAGAIN)
|
||||
if (errno != EAGAIN) {
|
||||
Error("Problem during writing: %s", strerror(errno));
|
||||
else
|
||||
} else {
|
||||
Debug(1, "Problem during writing: %s", strerror(errno));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (fwrite(data, bytes, 1, outfile) != 1) {
|
||||
|
||||
Reference in New Issue
Block a user