//已经改用getboardnum了,还是出错
//gen_title.c出错信息如下:
gen_title.c: In function 'generate_board_title':
gen_title.c:42: warning: passing argument 4 of 'safe_mmapfile_handle'
from incompatib
le pointer type
gen_title.c:106: error: too few arguments to function 'getboardnum'
gen_title.c:108: error: too few arguments to function 'getboardnum'
*** Error code 1
老大,这个也不行啊。
//func.h中定义如下:
int getboardnum(const char *bname, struct boardheader *bh);
//gen_title.c中使用:
bs=getbstatus(getboardnum(bh->filename));
set_board(getboardnum(bh->filename), &btmp, NULL);
//chlevel.c出错信息如下:
chlevel.c:7: warning: return type defaults to 'int'
chlevel.c: In function 'main':
chlevel.c:79: error: too few arguments to function 'substitute_record'
chlevel.c:83: warning: control reaches end of non-void function
//func.h中定义如下:
int substitute_record(char *filename, void *rptr, int size, int id,
RECORD_FUNC_ARG filecheck, void *arg);
//chlevel.c中使用:
substitute_record(BBSHOME "/.PASSWDS", &user, sizeof(user), i);
请fancy大大指点,谢谢!!
【 在 fancyrabbit (fancy★一摩尔时光) 的大作中提到: 】
: 哦,应该不是这个原因。getbnum()没有了应该是。
: 用 getboardnum() 吧
--
修改:tolly FROM 113.68.23.*
FROM 113.68.23.*