mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 11:57:43 +08:00
fixed one compiling warning
This commit is contained in:
parent
8e023c745a
commit
82265bdbb1
@ -13,7 +13,7 @@ typedef struct HTTP_CHAT_CTX {
|
||||
HTTP_HDR *hdr; /**< 通用HTTP头(请求头或响应头) */
|
||||
ACL_ASTREAM *stream; /**< 流指针 */
|
||||
int timeout; /**< 读写超时时间,秒 */
|
||||
char chunked; /**< 是否是块传输模式 */
|
||||
short chunked; /**< 是否是块传输模式 */
|
||||
ctx_type type; /**< 仅为了调试方便 */
|
||||
int status; /**< 当前所处IO状态 */
|
||||
#define CHAT_S_HDR (1 << 0) /**< 读 HTTP 头 */
|
||||
|
@ -11,7 +11,7 @@ typedef struct HTTP_CHAT_CTX {
|
||||
ACL_VSTREAM *stream;
|
||||
unsigned int flag; /**< 继承的标志位, defined as HTTP_CHAT_FLAG_XXX */
|
||||
int timeout;
|
||||
char chunked;
|
||||
short chunked;
|
||||
http_off_t chunk_len; /**< 当前数据块所需要读的数据长度(字节) */
|
||||
http_off_t read_cnt; /**< 当前数据块所读数据长度(字节) */
|
||||
http_off_t body_len; /**< 所读到数据体总长度(字节) */
|
||||
|
Loading…
Reference in New Issue
Block a user