소스 검색

Fixed mismatching function declaration and the resulting build error

Infinity95 8 년 전
부모
커밋
6fb18535aa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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.