请教: "unsigned int" is incompatible with parameter of type "unsigned short *"
lxw76 2011-05-12 03:29:06 void process_connection(struct netconn *conn)
{ struct netbuf *inbuf;
char *rq;
unsigned int len=0;
unsigned int *b_len; char *temp;
inbuf = netconn_recv(conn);
b_len=&len;
pbuf_date_com(inbuf,(void **)&rq, *b_len);
// DEBUG_SendStr(rq,*b_len);
//普通用户登录网页主界面 Web_TEXT
if( (temp=string_cmp(rq, "GET ")) != NULL)
{
Web_Get_Date_Imports(temp,conn,*b_len); netbuf_delete(inbuf);
netconn_close(conn);
}
else if( (temp=string_cmp(rq, "POST ")) != NULL)
{
Web_Post_Date_Imports(rq,conn,*b_len);
netbuf_delete(inbuf);
netconn_close(conn);
}
}
unsigned char Web_Get_Date_Imports(char *p,struct netconn *conn,unsigned short *len)
编译出错
error: #167: argument of type "unsigned int" is incompatible with parameter of type "unsigned short *"
我也是抄别人一段代码,请教各位高手,什么问题?如何修改?