Skip to content

Commit

Permalink
remove mqtt unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
GXhua committed Jul 29, 2020
1 parent 318e33a commit 84d8214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocol/mqtt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void swMqtt_set_protocol(swProtocol *protocol) {
protocol->get_package_length = swMqtt_get_package_length;
}

static sw_inline ssize_t swMqtt_get_length(const char *data, uint32_t size, ssize_t *count) {
static sw_inline ssize_t swMqtt_get_length(const char *data, ssize_t *count) {
uint8_t byte;
int mul = 1;
ssize_t length = 0;
Expand Down Expand Up @@ -70,6 +70,6 @@ ssize_t swMqtt_get_package_length(swProtocol *protocol, swSocket *conn, const ch
return 0;
}
ssize_t count = 0;
ssize_t length = swMqtt_get_length(data, size, &count);
ssize_t length = swMqtt_get_length(data, &count);
return length + count + 1;
}

0 comments on commit 84d8214

Please sign in to comment.