Little things I forgot
This commit is contained in:
parent
f62f6ad71a
commit
d4e60aeace
1 changed files with 5 additions and 3 deletions
|
@ -100,15 +100,17 @@ int tabby_printer_packet_send(int fd,
|
|||
goto error_io;
|
||||
}
|
||||
|
||||
if (header->size) {
|
||||
if (write(fd, body, header->size) < 0) {
|
||||
goto error_io;
|
||||
}
|
||||
}
|
||||
|
||||
if (write(fd, &sum, sizeof(sum)) < 0) {
|
||||
goto error_io;
|
||||
}
|
||||
|
||||
if (read(fd, response, sizeof(response)) < 0) {
|
||||
if (read(fd, response, sizeof(*response)) < 0) {
|
||||
goto error_io;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue