change int to size_t
This commit is contained in:
@@ -6,7 +6,7 @@ struct tfe_rpc_response_result{
|
||||
int status_code;
|
||||
const char* status_msg;
|
||||
char* data;
|
||||
int len;
|
||||
size_t len;
|
||||
};
|
||||
|
||||
enum TFE_RPC_FLAG
|
||||
|
||||
@@ -93,7 +93,7 @@ void read_chunk_cb(struct evhttp_request* response, void* arg)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int evbuf_len = evbuffer_get_length(evbuf);
|
||||
size_t evbuf_len = evbuffer_get_length(evbuf);
|
||||
char* data = (char*)evbuffer_pullup(evbuf, evbuf_len);
|
||||
//printf("data is %s\n", data==NULL ? "NULL":"NOT NULL");
|
||||
struct tfe_rpc_response_result* result = ALLOC(struct tfe_rpc_response_result, 1);
|
||||
|
||||
@@ -352,7 +352,7 @@ static void certstore_rpc_on_succ(void* result, void* user)
|
||||
int status_code = response->status_code;
|
||||
const char* status_msg = response->status_msg;
|
||||
char* data = response->data;
|
||||
int len = response->len;
|
||||
size_t len = response->len;
|
||||
if(status_code == HTTP_OK)
|
||||
{
|
||||
*(data+len) = '\0';
|
||||
|
||||
Reference in New Issue
Block a user