From 4b4abc7be1b094ddfac678bddc31638bf7cc45ac Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 24 Apr 2023 06:41:31 +0000 Subject: [PATCH] obd: fix observer link error when deploy to remote server --- deps/easy/src/io/easy_negotiation.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deps/easy/src/io/easy_negotiation.c b/deps/easy/src/io/easy_negotiation.c index a2613c4db..59ab193fa 100644 --- a/deps/easy/src/io/easy_negotiation.c +++ b/deps/easy/src/io/easy_negotiation.c @@ -91,9 +91,9 @@ static int easy_decode_uint64(char *buf, const int64_t data_len, int64_t *pos, u return ret; } -static int easy_decode_uint16(char *buf, const int64_t data_len, int64_t *pos, uint16_t *val) -{ - int ret = (NULL != buf && data_len - *pos >= 2) ? EASY_OK : EASY_ERROR; +static int easy_decode_uint16(char *buf, const int64_t data_len, int64_t *pos, uint16_t *val) +{ + int ret = (NULL != buf && data_len - *pos >= 2) ? EASY_OK : EASY_ERROR; if (ret == EASY_OK) { *val = (uint16_t)(((*(buf + (*pos)++)) & 0xff) << 8); @@ -137,9 +137,9 @@ static int easy_encode_negotiation_msg(easy_negotiation_msg_t *ne_msg, char *buf return ret; } -static int easy_decode_negotiation_msg(easy_negotiation_msg_t *ne_msg, char *recv_buf, int64_t recv_buf_len, int64_t *decode_len) -{ - int ret = EASY_OK; +static int easy_decode_negotiation_msg(easy_negotiation_msg_t *ne_msg, char *recv_buf, int64_t recv_buf_len, int64_t *decode_len) +{ + int ret = EASY_OK; int64_t pos = 0; if (NULL == ne_msg || NULL == recv_buf || NULL == decode_len) {