This is an automated email from the ASF dual-hosted git repository.

rbulter pushed a commit to branch feature/refactor_tcp_receive_function
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to 
refs/heads/feature/refactor_tcp_receive_function by this push:
     new 922ec9a  Fix converage build error
922ec9a is described below

commit 922ec9a46c980fe78270cde3b757e2d6ee396b58
Author: Roy Bulter <[email protected]>
AuthorDate: Sun May 31 14:57:58 2020 +0200

    Fix converage build error
---
 bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c 
b/bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c
index 92ef423..efcf78d 100644
--- a/bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c
+++ b/bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c
@@ -784,9 +784,10 @@ void 
pubsub_tcpHandler_setReceiveTimeOut(pubsub_tcpHandler_t *handle, double tim
 }
 
 static inline
-int pubsub_tcpHandler_readSocket(pubsub_tcpHandler_t *handle, 
psa_tcp_connection_entry_t *entry, int fd, void* buffer, unsigned int offset, 
unsigned int size, int flag ) {
+int pubsub_tcpHandler_readSocket(pubsub_tcpHandler_t *handle, 
psa_tcp_connection_entry_t *entry, int fd, void* _buffer, unsigned int offset, 
unsigned int size, int flag ) {
     int expectedReadSize = size;
     int nbytes = size;
+    char* buffer = (char*)_buffer;
     while (nbytes > 0 && expectedReadSize > 0) {
         // Read the message header
         nbytes = recv(fd, &buffer[offset], expectedReadSize, flag | 
MSG_NOSIGNAL);

Reply via email to