Przeglądaj źródła

Fixed mismatching function declaration and the resulting build error

Infinity95 8 lat temu
rodzic
commit
6fb18535aa
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/ua_connection_internal.h

+ 2 - 2
src/ua_connection_internal.h

@@ -28,8 +28,8 @@ extern "C" {
  * @return Returns UA_STATUSCODE_GOOD or an error code. When an error occurs, the ingoing message
  *         and the current buffer in the connection are freed. */
 UA_StatusCode
-UA_Connection_completeMessages(UA_Connection *connection, UA_ByteString *message,
-                               UA_Boolean *realloced);
+UA_Connection_completeMessages(UA_Connection *connection, UA_ByteString * UA_RESTRICT message,
+                               UA_Boolean * UA_RESTRICT realloced);
 
 /* Try to receive at least one complete chunk on the connection. This blocks the
  * current thread up to the given timeout.