diff options
author | Alexandre Iooss | 2016-08-15 09:25:13 +0200 |
---|---|---|
committer | Alexandre Iooss | 2016-08-15 09:25:13 +0200 |
commit | 5e4eb6da9318a98f99c575853be3583acfc6705c (patch) | |
tree | 53aed9ff37ce3f867ba91a5b1cd49b2f0418987c /0005-libARDiscovery-Fix-some-warnings.patch | |
download | aur-5e4eb6da9318a98f99c575853be3583acfc6705c.tar.gz |
First version, libARController not working
Diffstat (limited to '0005-libARDiscovery-Fix-some-warnings.patch')
-rw-r--r-- | 0005-libARDiscovery-Fix-some-warnings.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/0005-libARDiscovery-Fix-some-warnings.patch b/0005-libARDiscovery-Fix-some-warnings.patch new file mode 100644 index 000000000000..40516a0d0a43 --- /dev/null +++ b/0005-libARDiscovery-Fix-some-warnings.patch @@ -0,0 +1,31 @@ +--- a/packages/libARDiscovery/Sources/ARDISCOVERY_Connection.c ++++ b/packages/libARDiscovery/Sources/ARDISCOVERY_Connection.c +@@ -866,7 +866,7 @@ static eARDISCOVERY_ERROR ARDISCOVERY_Connection_RxPending (ARDISCOVERY_Connecti + else + { + if ((readSize == 0 || readSize == -1) && +- (errno == EAGAIN || errno == EWOULDBLOCK)) ++ (errno == EAGAIN)) + { + ARSAL_PRINT(ARSAL_PRINT_DEBUG, ARDISCOVERY_CONNECTION_TAG, "No more data to read"); + // Nothing to do here, it just means that we had a size which is a multiple of ARDISCOVERY_CONNECTION_RX_BUFFER_SIZE +@@ -902,7 +902,7 @@ static eARDISCOVERY_ERROR ARDISCOVERY_Connection_RxPending (ARDISCOVERY_Connecti + else + { + if ((readSize == 0 || readSize == -1) && +- (errno == EAGAIN || errno == EWOULDBLOCK)) ++ (errno == EAGAIN)) + { + ARSAL_PRINT(ARSAL_PRINT_DEBUG, ARDISCOVERY_CONNECTION_TAG, "No more data to read"); + // Nothing to do here, it just means that we had a size which is a multiple of ARDISCOVERY_CONNECTION_RX_BUFFER_SIZE +--- a/packages/libARDiscovery/Sources/ARDISCOVERY_Connection.h ++++ b/packages/libARDiscovery/Sources/ARDISCOVERY_Connection.h +@@ -40,7 +40,7 @@ + typedef struct ARDISCOVERY_Connection_ComData_t + { + uint8_t *buffer; /**< data buffer */ +- int32_t size; /**< size of the data */ ++ uint32_t size; /**< size of the data */ + int32_t capacity; /**< size allocated of the data buffer */ + } ARDISCOVERY_Connection_ComData_t; + |