标题:[求助]程序出错 大家来看看啊
取消只看楼主
hao0716
Rank: 4
等 级:业余侠客
威 望:1
帖 子:353
专家分:222
注 册:2006-4-11
 问题点数:0 回复次数:2 
[求助]程序出错 大家来看看啊
warning: passing arg 1 of `IPFilterInitialize' makes poin
ter from integer without a cast
D:\test\ipfilter\ipfilter.c:430: warning: passing arg 1 of `UpdateIdListTtl' makes pointer
from integer without a cast
D:\test\ipfilter\ipfilter.c:431: warning: passing arg 1 of `AutoDeleteIdList' makes pointe
r from integer without a cast
D:\test\ipfilter\ipfilter.c:436: warning: passing arg 1 of `UpdateIdListTtl' makes pointer
from integer without a cast
D:\test\ipfilter\ipfilter.c:437: warning: passing arg 1 of `AutoDeleteIdList' makes pointe
r from integer without a cast

上面是错误
if(IPFilterInitialize(pIdList))
{
if(IsValidHeader(Packet, PacketLength))
{
if(pIp->Offset == 0x02)
{
UpdateIdListTtl(pIdList);
AutoDeleteIdList(pIdList);
return CheckIdList(Packet);
}
else
{
UpdateIdListTtl(pIdList);
AutoDeleteIdList(pIdList);
return CheckAccessList(Packet, &AcsListHeader, pIdList);
下面是程序 高手给看看啊 谢谢......

搜索更多相关主题的帖子: ipfilter arg passing warning cast 
2006-06-13 10:28
hao0716
Rank: 4
等 级:业余侠客
威 望:1
帖 子:353
专家分:222
注 册:2006-4-11
得分:0 
改好了 谢谢 唉 DEBUG真是一件痛苦的事情啊

2006-06-13 11:10
hao0716
Rank: 4
等 级:业余侠客
威 望:1
帖 子:353
专家分:222
注 册:2006-4-11
得分:0 
做一个防火墙的程序 建立在TCP/IP的基础上的 呵呵 只是上来问问代码的问题而已 还有十几个错误呢 唉

2006-06-13 11:12



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-71874-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.109470 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved