space cleanup
This commit is contained in:
@@ -254,7 +254,7 @@ void Sync_Read_Buffer(int fd, unsigned char expected_bytes)
|
|||||||
|
|
||||||
// ToDo: check that expected_bytes < sizeof(Incoming)
|
// ToDo: check that expected_bytes < sizeof(Incoming)
|
||||||
BytesRead = read(fd, Incoming, expected_bytes);
|
BytesRead = read(fd, Incoming, expected_bytes);
|
||||||
if (BytesRead == -1){
|
if (BytesRead == -1) {
|
||||||
/* printf("~~~Problem reading: %s .\n", strerror(errno)); */
|
/* printf("~~~Problem reading: %s .\n", strerror(errno)); */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -316,7 +316,6 @@ unsigned char DiscardGetByte(void)
|
|||||||
{
|
{
|
||||||
unsigned char return_byte = '\0';
|
unsigned char return_byte = '\0';
|
||||||
|
|
||||||
|
|
||||||
/* wrap read pointer to the receive buffer */
|
/* wrap read pointer to the receive buffer */
|
||||||
ReceiveBufferTail %= RECEIVEBUFFERSIZE;
|
ReceiveBufferTail %= RECEIVEBUFFERSIZE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user