BugID:17646749:[h2 app]use uint32_t to replace size_t
static int upload_end = 0;
-static void on_header(uint32_t stream_id, char *channel_id,int cat,const uint8_t *name,size_t namelen,
- const uint8_t *value,size_t valuelen, uint8_t flags)
+static void on_header(uint32_t stream_id, char *channel_id,int cat,const uint8_t *name,uint32_t namelen,
+ const uint8_t *value,uint32_t valuelen, uint8_t flags)
{
EXAMPLE_TRACE("~~~~~stream_id = %d, channel_id=%s, name = %s, value = %s, flag = %d\n", stream_id,channel_id,name,value,flags);
}
-static void on_chunk_recv(uint32_t stream_id, char *channel_id,const uint8_t *data, size_t len,uint8_t flags)
+static void on_chunk_recv(uint32_t stream_id, char *channel_id,const uint8_t *data, uint32_t len,uint8_t flags)
{
- EXAMPLE_TRACE("~~~~~stream_id = %d, channel_id=%s, data = %s ,len = %d flag = %d\n", stream_id,channel_id,data,len,flags);
+ EXAMPLE_TRACE("~~~~~stream_id = %d, channel_id=%s,len = %d flag = %d\n", stream_id,channel_id,len,flags);
}
static void on_stream_close(uint32_t stream_id, char *channel_id,uint32_t error_code)
{
