obd: fix observer link error when deploy to remote server
This commit is contained in:
parent
87ad8877d4
commit
4b4abc7be1
12
deps/easy/src/io/easy_negotiation.c
vendored
12
deps/easy/src/io/easy_negotiation.c
vendored
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user