2012年(9)
分类: BSD
2012-07-19 15:06:49
void ha_process_pkttimer(void *data)
{
ha_packet_t *packet;
ha_packet_ctrl_t *controller;
if (data == NULL)
return;
packet = data;
没有将void *转换为(ha_packet_t *)
controller = packet->controller;
if (controller->check_func(packet) && controller->timeout_func != NULL) {
}
注意红色部分,导致在 if (controller->check_func这句时引起总线错误
参考:
http://www.cnblogs.com/li-hao/archive/2012/01/31/2333952.html