From a884fbe1c98e91d8922ac3017e1179e2edc28ef0 Mon Sep 17 00:00:00 2001
From: fujuntang <fujuntang@smartai.com>
Date: 星期二, 31 八月 2021 08:48:12 +0800
Subject: [PATCH] Change the prototype to keep the same with the declaration.

---
 src/bh_api.cpp |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/bh_api.cpp b/src/bh_api.cpp
index b492faa..c6519dc 100644
--- a/src/bh_api.cpp
+++ b/src/bh_api.cpp
@@ -906,7 +906,7 @@
 }
 
 #if defined(PRO_DE_SERIALIZE)
-int BHPublish(const char *msgpub, const char msgpub_len, const int timeout_ms)
+int BHPublish(const char *msgpub, const int msgpub_len, const int timeout_ms)
 #else
 int BHPublish(const char *topic, const char *content, const int timeout_ms)
 #endif
@@ -1275,6 +1275,12 @@
   int sec, nsec;
   char topics_buf[MAX_STR_LEN] = { 0x00 };
   
+  struct _RequestReply
+  {
+    std::string proc_id;
+    std::string data;
+  }rr;
+
 #if defined(PRO_DE_SERIALIZE)
   struct _BHAddress
 	{
@@ -1290,12 +1296,6 @@
 		const char *data;
 	}_input1;
 
-  struct _RequestReply
-  {
-    std::string proc_id;
-    std::string data;
-  }rr;
-  
   ::bhome_msg::BHAddress input0;
 	::bhome_msg::MsgRequestTopic input1;
 	if (!input0.ParseFromArray(remote, remote_len) || !input1.ParseFromArray(request, request_len)) {

--
Gitblit v1.8.0