正如标题所说,我有这个错误我将不胜感激帮助我我的代码在下面
这是在 BTscan.c
t_btmanager *bt_accessor(t_btmanager *tmp)
{
static t_btmanager *bt_tmp = 0;
if (tmp)
bt_tmp = tmp;
return (bt_tmp);
}
int bt_scan()
{
bt_accessor(0)->status = 1; ////Here's the problem
printf("registering hooks ...\n");
return (0);
}
这个在 BTscan.h
typedef struct s_btmanager
{
char status;
} t_btmanager;
谢谢你的帮助